justinfagnani / PetitParserDart

Dynamic Grammars in Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PetitParser

Grammars for programming languages are traditionally specified statically. They are hard to compose and reuse due to ambiguities that inevitably arise. PetitParser combines ideas from scannerless parsing, parser combinators, parsing expression grammars and packrat parsers to model grammars and parsers as objects that can be reconfigured dynamically.

PetitParser was originally implemented in Smalltalk. Later on, as a mean to learn these langauges, I reimplemented PetitParser in Java and Dart. The implementations are very similar in their API and the supported features. If possible I tried to adopt common practices of the target language.

Continuous build results are available from Jenkins.

Tasks

  • Get rid of the global functions creating PredicateParser instances.
  • Use constructor initializiers in PredicateParser as soon as Dart allows functions in constructor initializers.
  • Use #import('dart:unittest') as soon as Dart officially blesses the testing framework.

Need to find workarounds for the following problems in Reflection.dart:

About

Dynamic Grammars in Dart

License:MIT License


Languages

Language:Dart 99.2%Language:Common Lisp 0.8%