| 1 |
// following ORNL continue parsing at the next line, with a new regex |
| 2 |
// which again may start with a ^ |
| 3 |
_msCompound_regex_list: |
| 4 |
_msCompound_regex_list ORNL '\n' reset _msCompound_regex_list |
| 5 |
{ |
| 6 |
orAction(); |
| 7 |
} |
| 8 |
| |
| 9 |
regexOrEOF |
| 10 |
{ |
| 11 |
addRule($1); |
| 12 |
} |
| 13 |
; |
| 14 |
|
| 15 |
// _msCompound_rule: rules specified within a <ms_spec>{ ms-rules } |
| 16 |
// compound. These rules may not themselves specify miniscanners |
| 17 |
_msCompound_rule: |
| 18 |
// empty |
| 19 |
| |
| 20 |
_msCompound_regex_list |
| 21 |
{ |
| 22 |
noActions(); |
| 23 |
} |
| 24 |
| |
| 25 |
_msCompound_regex_list action |
| 26 |
{ |
| 27 |
assignBlock(); |
| 28 |
} |
| 29 |
; |
| 30 |
|
| 31 |
_msCompound_nl_rule: |
| 32 |
_msCompound_rule '\n' reset |
| 33 |
; |
| 34 |
|
| 35 |
_opt_msCompound_nl_rules: |
| 36 |
// empty |
| 37 |
| |
| 38 |
_opt_msCompound_nl_rules _msCompound_nl_rule |
| 39 |
; |
| 40 |
|
| 41 |
msCompound: |
| 42 |
ms_spec '{' reset _opt_msCompound_nl_rules '}' |
| 43 |
{ // following an msCompound, reset the startconditions to 'INITIAL' |
| 44 |
d_rules.resetStartConditions(); |
| 45 |
} |
| 46 |
; |