[Compiler] Refactor to use stack only

Authored by Jan Marker <jan@jangmarker.de>.

Description

[Compiler] Refactor to use stack only

This allows for a more consequent concept.

  • add handling of lists for SourceElements and StatementList needed to have same pass level of integration tests as before the refactoring
  • change macros to reflect new concept
  • introduces a new error type InternalError this error is created if the stack was not correctly reduced, which should not happen in practice

Details

Committed
Jan Marker <jan@jangmarker.de>Sep 11 2015, 5:57 PM
Differential Revision
D350: Implement basics of a AST -> JS generator
Parents
R18:692a961c98a8: [Compiler] Start work on functions
Branches
Unknown
Tags
Unknown
Jan Marker <jan@jangmarker.de> committed R18:34c82139fd7b: [Compiler] Refactor to use stack only (authored by Jan Marker <jan@jangmarker.de>).Sep 11 2015, 5:57 PM