You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Niles Rogoff 9f88ed9d0d
Started on grammar, but probably won't work
7 years ago
(1+0)*1.svg add graphs 7 years ago
.gitignore gitignore 7 years ago
ab(c1+2d(e*f)d)*e.svg add graphs 7 years ago
lexer.py Started on grammar, but probably won't work 7 years ago
nfa.py Parser doesn't use global variables 7 years ago
parser.py Started on grammar, but probably won't work 7 years ago
readme.md Updated readme 7 years ago
temp.svg Lexer works 7 years ago

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