summaryrefslogtreecommitdiffstats
path: root/src/front/ast.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* push command line params onto stackBenedikt Böhm2009-07-071-1/+6
|
* implement print statementBenedikt Böhm2009-07-061-0/+12
|
* fix function call as statement, fix EBNF errorsBenedikt Böhm2009-07-041-2/+1
|
* adapt parser for backend changesBenedikt Böhm2009-07-041-25/+42
| | | | | | | | - 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)
* cleanup astBenedikt Böhm2009-07-031-57/+30
|
* implement three-address-code objects instead of printfAndreas Nüßlein2009-07-021-43/+78
|
* implemented scope and most of astAndreas Nüßlein2009-06-301-110/+172
|
* fix function_callBenedikt Böhm2009-06-291-1/+1
| | | | | - function_call is now an expression and a statement - call keyword is required to make lookahead = 1 work
* added parserAlexander Sulfrian2009-06-231-1/+20
| | | | | - commited parser (Michael Popov) - changed encoding of parser.py to utf8
* tac and ast updates - added eval to ast-elemsAndreas Nüßlein2009-05-261-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)
* implement AST interfaces, which also superseeds parser tokensBenedikt Böhm2009-05-211-0/+87