-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharith3.ixml.parsed.xml
45 lines (45 loc) · 1.78 KB
/
arith3.ixml.parsed.xml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<ixml>
<rule name="expr">:<alt>
<nonterminal name="term"/>
</alt>;<alt>
<nonterminal name="expr"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<literal dstring="+"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<nonterminal name="term"/>
</alt>;<alt>
<nonterminal name="expr"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<literal dstring="-"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<nonterminal name="term"/>
</alt>.</rule>
<rule name="term">:<alt>
<nonterminal name="factor"/>
</alt>;<alt>
<nonterminal name="term"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<literal dstring="*"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<nonterminal name="factor"/>
</alt>;<alt>
<nonterminal name="term"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<literal dstring="/"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<nonterminal name="factor"/>
</alt>.</rule>
<rule name="factor">:<alt>
<nonterminal name="num"/>
</alt>;<alt>
<nonterminal name="var"/>
</alt>;<alt>
<literal dstring="("/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<nonterminal name="expr"/>,<option>
<nonterminal mark="-" name="s"/>?</option>,<literal dstring=")"/>
</alt>.</rule>
<rule name="num">:<alt>
<repeat1>
<inclusion>[<range from="0" to="9">-</range>]</inclusion>+</repeat1>
</alt>.</rule>
<rule name="var">:<alt>
<repeat1>
<inclusion>[<range from="a" to="z">-</range>]</inclusion>+</repeat1>
</alt>.</rule>
<rule mark="-" name="s">:<alt>
<repeat1>
<inclusion tmark="-">[<class code="Zs"/>]</inclusion>+</repeat1>
</alt>.</rule>
</ixml>