├── .gitignore ├── .travis.yml ├── CONTRIBUTIONS ├── LICENSE ├── MANIFEST.in ├── README.md ├── documentation └── example.md ├── pydsl ├── __init__.py ├── check.py ├── contrib │ ├── __init__.py │ ├── alphabet │ │ ├── __init__.py │ │ └── test_alphabet.py │ ├── bnfgrammar.py │ ├── grammar │ │ ├── Date.bnf │ │ ├── Date.parsley │ │ ├── DayOfMonth.py │ │ ├── Grammar2RecursiveDescentParserRecognizer.py │ │ ├── HTMLTable.bnf │ │ ├── ImageFile.py │ │ ├── LogicalExpression.bnf │ │ ├── MimeType.py │ │ ├── SpanishID.py │ │ ├── TrueFalse.bnf │ │ ├── TrueHTMLTable.bnf │ │ ├── __init__.py │ │ ├── calc_ply.py │ │ ├── cstring.py │ │ ├── example_ply.py │ │ ├── integerop.py │ │ ├── logline.bnf │ │ ├── mongoquery.bnf │ │ └── protocol.py │ ├── mongogrammar.py │ ├── regexps.py │ ├── spark │ │ ├── spark_example.py │ │ ├── spark_parse_example.py │ │ └── spark_scan_example.py │ └── translator │ │ ├── calculator.py │ │ ├── calculator_bnf.py │ │ ├── chemicalFormulas.py │ │ └── echo.py ├── diff.py ├── encoding.py ├── equal.py ├── exceptions.py ├── external │ ├── __init__.py │ └── spark.py ├── extract.py ├── file │ ├── BNF.py │ ├── __init__.py │ ├── parsley.py │ ├── python.py │ └── regexp.py ├── grammar │ ├── BNF.py │ ├── PEG.py │ ├── __init__.py │ ├── definition.py │ ├── parsley.py │ └── symbol.py ├── guess.py ├── lex.py ├── parser │ ├── LL.py │ ├── LR0.py │ ├── PEG.py │ ├── README.md │ ├── __init__.py │ ├── backtracing.py │ └── parser.py ├── token.py ├── translator.py └── tree.py ├── requirements.txt ├── setup.py └── tests ├── FOL.g ├── __init__.py ├── functional ├── __init__.py ├── test_Binary.py ├── test_Case.py └── test_LogicGrammars.py └── unit ├── __init__.py ├── test_Alphabet.py ├── test_BNF.py ├── test_BNFLoad.py ├── test_Checker.py ├── test_Diff.py ├── test_Equal.py ├── test_Extract.py ├── test_GrammarDefinition.py ├── test_Guess.py ├── test_Lexer.py ├── test_PEG.py ├── test_Parser.py ├── test_Parsley.py ├── test_RegularExpression.py ├── test_Translate.py └── test_Tree.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTIONS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/CONTRIBUTIONS -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/README.md -------------------------------------------------------------------------------- /documentation/example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/documentation/example.md -------------------------------------------------------------------------------- /pydsl/__init__.py: -------------------------------------------------------------------------------- 1 | VERSION = (0,5,3) 2 | -------------------------------------------------------------------------------- /pydsl/check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/check.py -------------------------------------------------------------------------------- /pydsl/contrib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydsl/contrib/alphabet/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydsl/contrib/alphabet/test_alphabet.py: -------------------------------------------------------------------------------- 1 | grammarlist = ["integer","Date"] 2 | iclass = "AlphabetList" 3 | -------------------------------------------------------------------------------- /pydsl/contrib/bnfgrammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/bnfgrammar.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/Date.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/Date.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/Date.parsley: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/Date.parsley -------------------------------------------------------------------------------- /pydsl/contrib/grammar/DayOfMonth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/DayOfMonth.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/Grammar2RecursiveDescentParserRecognizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/Grammar2RecursiveDescentParserRecognizer.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/HTMLTable.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/HTMLTable.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/ImageFile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/ImageFile.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/LogicalExpression.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/LogicalExpression.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/MimeType.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/MimeType.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/SpanishID.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/SpanishID.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/TrueFalse.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/TrueFalse.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/TrueHTMLTable.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/TrueHTMLTable.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydsl/contrib/grammar/calc_ply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/calc_ply.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/cstring.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/cstring.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/example_ply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/example_ply.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/integerop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/integerop.py -------------------------------------------------------------------------------- /pydsl/contrib/grammar/logline.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/logline.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/mongoquery.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/mongoquery.bnf -------------------------------------------------------------------------------- /pydsl/contrib/grammar/protocol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/grammar/protocol.py -------------------------------------------------------------------------------- /pydsl/contrib/mongogrammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/mongogrammar.py -------------------------------------------------------------------------------- /pydsl/contrib/regexps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/regexps.py -------------------------------------------------------------------------------- /pydsl/contrib/spark/spark_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/spark/spark_example.py -------------------------------------------------------------------------------- /pydsl/contrib/spark/spark_parse_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/spark/spark_parse_example.py -------------------------------------------------------------------------------- /pydsl/contrib/spark/spark_scan_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/spark/spark_scan_example.py -------------------------------------------------------------------------------- /pydsl/contrib/translator/calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/translator/calculator.py -------------------------------------------------------------------------------- /pydsl/contrib/translator/calculator_bnf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/translator/calculator_bnf.py -------------------------------------------------------------------------------- /pydsl/contrib/translator/chemicalFormulas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/translator/chemicalFormulas.py -------------------------------------------------------------------------------- /pydsl/contrib/translator/echo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/contrib/translator/echo.py -------------------------------------------------------------------------------- /pydsl/diff.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/diff.py -------------------------------------------------------------------------------- /pydsl/encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/encoding.py -------------------------------------------------------------------------------- /pydsl/equal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/equal.py -------------------------------------------------------------------------------- /pydsl/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/exceptions.py -------------------------------------------------------------------------------- /pydsl/external/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydsl/external/spark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/external/spark.py -------------------------------------------------------------------------------- /pydsl/extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/extract.py -------------------------------------------------------------------------------- /pydsl/file/BNF.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/file/BNF.py -------------------------------------------------------------------------------- /pydsl/file/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pydsl/file/parsley.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/file/parsley.py -------------------------------------------------------------------------------- /pydsl/file/python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/file/python.py -------------------------------------------------------------------------------- /pydsl/file/regexp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/file/regexp.py -------------------------------------------------------------------------------- /pydsl/grammar/BNF.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/BNF.py -------------------------------------------------------------------------------- /pydsl/grammar/PEG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/PEG.py -------------------------------------------------------------------------------- /pydsl/grammar/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/__init__.py -------------------------------------------------------------------------------- /pydsl/grammar/definition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/definition.py -------------------------------------------------------------------------------- /pydsl/grammar/parsley.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/parsley.py -------------------------------------------------------------------------------- /pydsl/grammar/symbol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/grammar/symbol.py -------------------------------------------------------------------------------- /pydsl/guess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/guess.py -------------------------------------------------------------------------------- /pydsl/lex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/lex.py -------------------------------------------------------------------------------- /pydsl/parser/LL.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/LL.py -------------------------------------------------------------------------------- /pydsl/parser/LR0.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/LR0.py -------------------------------------------------------------------------------- /pydsl/parser/PEG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/PEG.py -------------------------------------------------------------------------------- /pydsl/parser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/README.md -------------------------------------------------------------------------------- /pydsl/parser/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/__init__.py -------------------------------------------------------------------------------- /pydsl/parser/backtracing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/backtracing.py -------------------------------------------------------------------------------- /pydsl/parser/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/parser/parser.py -------------------------------------------------------------------------------- /pydsl/token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/token.py -------------------------------------------------------------------------------- /pydsl/translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/translator.py -------------------------------------------------------------------------------- /pydsl/tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/pydsl/tree.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/setup.py -------------------------------------------------------------------------------- /tests/FOL.g: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/FOL.g -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/functional/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/functional/test_Binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/functional/test_Binary.py -------------------------------------------------------------------------------- /tests/functional/test_Case.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/functional/test_Case.py -------------------------------------------------------------------------------- /tests/functional/test_LogicGrammars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/functional/test_LogicGrammars.py -------------------------------------------------------------------------------- /tests/unit/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit/test_Alphabet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Alphabet.py -------------------------------------------------------------------------------- /tests/unit/test_BNF.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_BNF.py -------------------------------------------------------------------------------- /tests/unit/test_BNFLoad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_BNFLoad.py -------------------------------------------------------------------------------- /tests/unit/test_Checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Checker.py -------------------------------------------------------------------------------- /tests/unit/test_Diff.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Diff.py -------------------------------------------------------------------------------- /tests/unit/test_Equal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Equal.py -------------------------------------------------------------------------------- /tests/unit/test_Extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Extract.py -------------------------------------------------------------------------------- /tests/unit/test_GrammarDefinition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_GrammarDefinition.py -------------------------------------------------------------------------------- /tests/unit/test_Guess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Guess.py -------------------------------------------------------------------------------- /tests/unit/test_Lexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Lexer.py -------------------------------------------------------------------------------- /tests/unit/test_PEG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_PEG.py -------------------------------------------------------------------------------- /tests/unit/test_Parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Parser.py -------------------------------------------------------------------------------- /tests/unit/test_Parsley.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Parsley.py -------------------------------------------------------------------------------- /tests/unit/test_RegularExpression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_RegularExpression.py -------------------------------------------------------------------------------- /tests/unit/test_Translate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Translate.py -------------------------------------------------------------------------------- /tests/unit/test_Tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nesaro/pydsl/HEAD/tests/unit/test_Tree.py --------------------------------------------------------------------------------