File: rules

package info (click to toggle)
flexc%2B%2B 2.17.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,180 kB
  • sloc: cpp: 6,467; makefile: 148; sh: 130; ansic: 18
file content (28 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
_rule_def:
    // only an empty line is OK
|
    // recovery from errors is OK: continue at the next line
    error
|
    optMs_rule
|
    msCompound
;

    // each rule ends in a '\n'
_rule:                      
    _rule_def '\n' reset
//    {
//        if (d_scanner.endOfInput())
//            ACCEPT();
//    }
;                               
                                
    // there may be no rules
    // the scanner skips blanks, but returns '\n'
rules:
    rules _rule
|
    // empty
;