Rob van den Brink
updated his engine for the Object Pascal Programming Language. His implementation uses a
program template to create a full-functioning program. This approach embeds the parse
tables directly in the source code. As a result, you do not need to load a Compiled
Grammar Table file. The download contains a program template as well as several examples. From
the template file:
This template generates an inline parser engine, in (object) Pascal code, with full
support of error productions (to recover from errors). The lexer and parser are fully
embedded in the rest of your code, so that other modules are not required. The resulting
code can be compiled directly into a stand-alone program with a good object Pascal
compiler (like Virtual Pascal or Delphi).
The resulting program will read an input file (specified on the command line) and
emits the tokens and associated actions to the screen. Since this engine has full support
of error productions, and uses the SynError token for that, you should define 'SynError'
in the "virtual terminals" of your grammar.
Author: |
Rob van den Brink |
Language: |
Object Pascal |
Version: |
1.1 |
Date: |
August 2006 |
Size: |
248 KB |
|