Skip to content

1.3.0

Compare
Choose a tag to compare
@phorward phorward released this 21 Dec 21:42
· 129 commits to main since this release

Released on: December 21, 2017

  • Code generator does not emit action code when the action is empty.
  • New command-line parameter "-l" or "--language" to specify a target language
    via command-line. This is useful when a grammar only contains AST definitions,
    which allows to render and run it in any target.
  • Abstract syntax tree generation support:
    • Drafting an abstract syntax tree definition syntax for the grammar language,
      by using the operators "=" and ":=". See examples/expr.ast.par for an
      example working under both C and Python without any modifications.
    • C and Python parser targets extended to construct abstract syntax tree
      data structures dynamically.
    • These are first changes for an upcoming UniCC v2, where the targets shall
      be re-used with only few improvements.
  • Fixed several bugs in the Python target on insensitive mode.
  • Additionally allow ":" in case of "->" in grammar definitions.
  • Internal code revisions started, but interrupted for now.
  • Renamed folder "templates/" into "targets/".