diff options
| author | Kathy Gray | 2013-11-28 17:07:32 +0000 |
|---|---|---|
| committer | Kathy Gray | 2013-11-28 17:07:32 +0000 |
| commit | dcc2ec2e4e6a3fd9a393af64d45bdf659201da03 (patch) | |
| tree | 86ae08b56d12ed2e073ea984daee637b3f1afbb1 /src/pre_parser.mly | |
| parent | 2b30446b6d2c5ae4accb7e4d00e9af5426990aee (diff) | |
Updated syntax with working examples
Diffstat (limited to 'src/pre_parser.mly')
| -rw-r--r-- | src/pre_parser.mly | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/pre_parser.mly b/src/pre_parser.mly index fe59603f..e9c38ebd 100644 --- a/src/pre_parser.mly +++ b/src/pre_parser.mly @@ -64,25 +64,29 @@ id: | Id { $1 } -scan: +id_found: | Typedef id { $2 } - | Scattered Typedef id - { $3 } - | id scan - { $2 } - | Other scan - { $2 } + +skip: + | Scattered + { () } + | id + { () } + | Other + { () } scan_file: - | scan + | id_found { [$1] } - | scan scan_file + | skip + { [] } + | id_found scan_file { $1::$2 } + | skip scan_file + { $2 } file: | scan_file Eof { $1 } - | Other Eof - { [] } |
