summaryrefslogtreecommitdiffstats
path: root/src/front (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-07-07push command line params onto stackBenedikt Böhm1-1/+6
2009-07-06minor fixesBenedikt Böhm1-1/+1
2009-07-06implement print statementBenedikt Böhm4-1/+22
2009-07-04fix function call as statement, fix EBNF errorsBenedikt Böhm2-16/+14
2009-07-04cleanupBenedikt Böhm2-20/+0
2009-07-04adapt parser for backend changesBenedikt Böhm3-34/+69
- emit a prologue/epilogue for functions - emit a "JMP main" instruction in the beginning - track the last function label across genrate calls - split scope in params and local variables (they have a different layout on the stack)
2009-07-03cleanup astBenedikt Böhm1-57/+30
2009-07-02implement three-address-code objects instead of printfAndreas Nüßlein4-44/+86
2009-06-30implemented scope and most of astAndreas Nüßlein4-153/+233
2009-06-29fix function_callBenedikt Böhm4-69/+38
- function_call is now an expression and a statement - call keyword is required to make lookahead = 1 work
2009-06-28fixed error with not newline at file endAlexander Sulfrian3-40/+5
moved __init__.py with testcode from src/front to src/ added in lexer "\n\n" at source end to have a newline at file end added unexpected end of file message, if matched token is None
2009-06-23added parserAlexander Sulfrian4-69/+232
- commited parser (Michael Popov) - changed encoding of parser.py to utf8
2009-06-09simplify scope, symbol and typesBenedikt Böhm3-48/+20
2009-05-26fix __init__.pyBenedikt Böhm1-3/+1
2009-05-26tac and ast updates - added eval to ast-elemsAndreas Nüßlein1-17/+117
every ast-element now has a .eval-method that creates the ThreeAddressCode for said element. Also: tac-elements are stored linear in a list (, duh)
2009-05-25add scope, and symbol class, obsoletes SymbolTableBenedikt Böhm3-30/+54
2009-05-21implement AST interfaces, which also superseeds parser tokensBenedikt Böhm3-59/+111
2009-05-20remove symbol table from lexerBenedikt Böhm4-33/+40
2009-05-20convert tags to a typesafe enum so we can print strings instead of intsBenedikt Böhm1-42/+50
2009-05-20beautify symbol tableBenedikt Böhm2-17/+20
2009-05-20implemented lexer (with tokens and symbolTable)Alexander Sulfrian4-61/+215
todo: beautify code, implement token classes for parser implemented test function with testcode moved token class to single file (token.py)
2009-05-19parse tree not needed anymoreBenedikt Böhm1-3/+0
2009-05-19define interfacesBenedikt Böhm8-0/+174
2009-05-18move stuff around and create initial source structureBenedikt Böhm5-0/+0