| 1 |
If the parser (grammar specification) must be modified follow these steps: |
| 2 |
|
| 3 |
1. modify the grammar specification |
| 4 |
2. in parser/ run bisonc++ grammar |
| 5 |
This creates a new parserbase.h |
| 6 |
3. in scanner/ run flexc++ lexer |
| 7 |
This creates a new scanner, using the definitions in |
| 8 |
../parser/parserbase.h |
| 9 |
4. touch scanner/a parser/a |
| 10 |
To recompile the full scanner and parser classes |
| 11 |
5. build program |
| 12 |
|
| 13 |
6. reflex |
| 14 |
To verify that the new flexc++ (= tmp/bin/binary) can recreate itself |
| 15 |
|
| 16 |
The first 5 steps were implemented in the newly added script ./newgrammar. |