Go to file
Niles Rogoff 9f88ed9d0d
Started on grammar, but probably won't work
2017-03-25 15:37:11 -04:00
(1+0)*1.svg add graphs 2017-03-22 09:49:56 -04:00
.gitignore gitignore 2017-03-22 14:23:44 -04:00
ab(c1+2d(e*f)d)*e.svg add graphs 2017-03-22 09:49:56 -04:00
lexer.py Started on grammar, but probably won't work 2017-03-25 15:37:11 -04:00
nfa.py Parser doesn't use global variables 2017-03-25 14:55:36 -04:00
parser.py Started on grammar, but probably won't work 2017-03-25 15:37:11 -04:00
readme.md Updated readme 2017-03-25 15:11:34 -04:00
temp.svg Lexer works 2017-03-24 16:47:40 -04:00

readme.md

python cool compiler

COOL is the Classroom Object Oriented Language. I'm going to get at least partway through writing a compiler for it. I've written a regular expression parser, then used that to write a lexical analyzer. Now I need to write a few more definitions for lexemes and work on constructing an abstract syntax tree

This is what the lexical analyzer looks like now

This is what the parser looks like so far