First cut at l_to_python.py translator which reads a lex specification (in XML format...
authorNick Downing <downing.nick@gmail.com>
Sun, 5 Aug 2018 00:59:05 +0000 (10:59 +1000)
committerNick Downing <downing.nick@gmail.com>
Sun, 5 Aug 2018 00:59:05 +0000 (10:59 +1000)
commit8946d22be52e440a0ba974e47c3246ca999f281f
treeb8cde863fa765f5a0244f0711280b8c37bc63729
First cut at l_to_python.py translator which reads a lex specification (in XML format for now), and then passes each action through c_to_python.py to translate
39 files changed:
.gitignore [new file with mode: 0644]
ansi_c_lex.l [new file with mode: 0644]
ansi_c_lex.xml [new file with mode: 0644]
ansi_c_tokens.py [new file with mode: 0644]
ansi_c_yacc.xml [new file with mode: 0644]
ansi_c_yacc.y [new file with mode: 0644]
ansi_c_yylex.py [new file with mode: 0644]
ansi_c_yylex.sh [new file with mode: 0755]
ansi_c_yyparse.py [new file with mode: 0644]
ansi_c_yyparse.sh [new file with mode: 0755]
ast.py [new file with mode: 0644]
ast.sh [new file with mode: 0755]
bisect_set.py [new file with mode: 0644]
c_to_python.py [new file with mode: 0644]
degenerate.py [new file with mode: 0755]
dfa.py [new file with mode: 0644]
element.py [new file with mode: 0644]
generate.py [new file with mode: 0755]
grammar.py [new file with mode: 0644]
grammar.sh [new file with mode: 0755]
l_to_python.py [new file with mode: 0755]
lex.yy.c [new file with mode: 0644]
lr1.py [new file with mode: 0644]
lr1dfa.py [new file with mode: 0644]
macify.txt [new file with mode: 0644]
minilex.py [new file with mode: 0755]
miniyacc.py [new file with mode: 0755]
n.sh [new file with mode: 0755]
nfa.py [new file with mode: 0644]
regex.py [new file with mode: 0644]
regex.sh [new file with mode: 0755]
tests/parse-gram.y [new file with mode: 0644]
tests/parse.y [new file with mode: 0644]
tests/scan-code.l [new file with mode: 0644]
tests/scan-gram.l [new file with mode: 0644]
tests/scan.l [new file with mode: 0644]
work.py [new file with mode: 0644]
wrap_repr.py [new file with mode: 0644]
xml_to_l.py [new file with mode: 0755]