blob: 63285269b9db1e2e9b3a255b6e3e4159ba17e8b9 (
plain)
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
|
/*
file: ruledef.txt
Why: example of text to parse by rule_def_phrase grammar.
*/
Rrule_def_phrase AD AB(
lhs
,parallel-control-monitor{
arbitrator-code
***
}
){
-> |.|
-> ||| "cweb-marker" NS_cweb_marker::TH_cweb_marker {
rhs-op
Crule_def_phrase* fsm = (Crule_def_phrase*)parser()->fsm_tbl();
fsm->rule_def_->add_cweb_marker(sf->p2__->ast());
***
}
-> ||| |+| NULL {
rhs-op
RSVP(sf->p2__);
parser()->set_stop_parse(true);
***
}
}
|