Skip to content

Commit 671700f

Browse files
committed
[RegExp] Add web demo
1 parent 6fbf638 commit 671700f

4 files changed

Lines changed: 684 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ This example contains a simple grammar and evaluator for Prolog programs. The co
4848
dart run bin/prolog/prolog.dart
4949
```
5050

51+
### Regular Expressions
52+
53+
This example contains a simple parser and evaluator for regular expressions. It parses patterns, compiles them to Non-deterministic Finite Automata (NFA), and matches them against input text. An interactive playground is provided for the web browser.
54+
5155
### Smalltalk
5256

5357
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](https://www.lukas-renggli.ch/smalltalk/helvetia).

web/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ <h1>Interactive PetitParser Examples</h1>
3333
A reasonably complete interpreter that is able to parse and evaluate basic logic programs.
3434
</dd>
3535

36+
<dt><a href="regexp/regexp.html">Regular Expression Playground</a></dt>
37+
<dd>
38+
Parses regular expressions, compiles them to Non-deterministic Finite Automata (NFA), and matches them against input text with interactive visualization.
39+
</dd>
40+
3641
<dt><a href="smalltalk/smalltalk.html">Smalltalk Parser</a></dt>
3742
<dd>
3843
Contains the beginnings of a Smalltalk Interpreter. Currently only the parsed AST is printed.

0 commit comments

Comments
 (0)