petitparser_examples 5.0.0 copy "petitparser_examples: ^5.0.0" to clipboard
petitparser_examples: ^5.0.0 copied to clipboard

outdated

A collection of example parsers, applications, and benchmarks that illustrate the PetitParser framework.

example/README.md

PetitParser Examples #

Pub Package Build Status GitHub Issues GitHub Forks GitHub Stars GitHub License

This package contains examples to illustrate the use of PetitParser. A tutorial and full documentation is contained in the package description and API documentation. petitparser.github.io contains more information about PetitParser, running examples in the browser, and links to ports to other languages.

To run the web examples execute the following commands from the command line and navigate to http://localhost:8080/:

dart pub global activate webdev
webdev serve --release

Dart #

This example contains the grammar of the Dart programming language. This is based on an early Dart 1.0 grammar specification and unfortunately does not support all valid Dart programs yet.

JSON #

This example contains a complete implementation of JSON. It is a simple grammar that can be used for benchmarking with the native implementation.

Lisp #

This example contains a simple grammar and evaluator for LISP. The code is reasonably complete to run and evaluate complex programs. Binaries for a Read–Eval–Print Loop (REPL) are provided for the console and the web browser.

Math #

This example contains a simple evaluator for mathematical expressions, it builds a parse-tree that can then be used to print or evaluate expressions.

Prolog #

This example contains a simple grammar and evaluator for Prolog programs. The code is reasonably complete to run and evaluate basic prolog programs. Binaries for a Read–Eval–Print Loop (REPL) are provided for the console and the web browser.

Smalltalk #

This example contains a complete implementation of the Smalltalk grammar. This is a verbatim export of a grammar that was originally developed for the PetitParser infrastructure in Smalltalk and that was the base of the Helvetia Language Workbench.

5
likes
0
pub points
20%
popularity

Publisher

verified publisherlukas-renggli.ch

A collection of example parsers, applications, and benchmarks that illustrate the PetitParser framework.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, meta, more, petitparser

More

Packages that depend on petitparser_examples