Skip to content

Commit

Permalink
Add a Pascal grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Jan 5, 2024
1 parent 2340db0 commit 2d91200
Show file tree
Hide file tree
Showing 5 changed files with 768 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ dart run bin/lisp/lisp.dart

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

### Pascal

A complete pascal grammar following the Apple Pascal Standard from 1978.

### 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.
Expand Down
4 changes: 4 additions & 0 deletions lib/pascal.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// This package contains the grammar of Pascal.
library pascal;

export 'src/pascal/grammar.dart';
Loading

0 comments on commit 2d91200

Please sign in to comment.