source: branches/generator/Grammers/Test And White Space.grm

Last change on this file was 136, checked in by chronos, 7 years ago
  • Added: Support for whitespaces in And rule.
  • Added: Terminals can be specified as escaped strings with slash.
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<GrammerProject>
3 <Rules>
4 <Rule>
5 <Name>Main</Name>
6 <CreateSourceNode>0</CreateSourceNode>
7 <Level>0</Level>
8 <RuleItems>
9 <Type>0</Type>
10 <WithWhiteSpaces>-1</WithWhiteSpaces>
11 <RuleItem>
12 <Type>0</Type>
13 <Optional>0</Optional>
14 <Repetitive>0</Repetitive>
15 <AnyExcept>0</AnyExcept>
16 <EscapedStrings>0</EscapedStrings>
17 <Terminal>a</Terminal>
18 </RuleItem>
19 <RuleItem>
20 <Type>0</Type>
21 <Optional>0</Optional>
22 <Repetitive>0</Repetitive>
23 <AnyExcept>0</AnyExcept>
24 <EscapedStrings>0</EscapedStrings>
25 <Terminal>b</Terminal>
26 </RuleItem>
27 <RuleItem>
28 <Type>0</Type>
29 <Optional>0</Optional>
30 <Repetitive>0</Repetitive>
31 <AnyExcept>0</AnyExcept>
32 <EscapedStrings>0</EscapedStrings>
33 <Terminal>c</Terminal>
34 </RuleItem>
35 </RuleItems>
36 </Rule>
37 <Rule>
38 <Name>WhiteSpace</Name>
39 <CreateSourceNode>0</CreateSourceNode>
40 <Level>0</Level>
41 <RuleItems>
42 <Type>1</Type>
43 <WithWhiteSpaces>0</WithWhiteSpaces>
44 <RuleItem>
45 <Type>0</Type>
46 <Optional>0</Optional>
47 <Repetitive>0</Repetitive>
48 <AnyExcept>0</AnyExcept>
49 <EscapedStrings>0</EscapedStrings>
50 <Terminal> </Terminal>
51 </RuleItem>
52 <RuleItem>
53 <Type>0</Type>
54 <Optional>0</Optional>
55 <Repetitive>0</Repetitive>
56 <AnyExcept>0</AnyExcept>
57 <EscapedStrings>-1</EscapedStrings>
58 <Terminal>\n</Terminal>
59 </RuleItem>
60 <RuleItem>
61 <Type>0</Type>
62 <Optional>0</Optional>
63 <Repetitive>0</Repetitive>
64 <AnyExcept>0</AnyExcept>
65 <EscapedStrings>-1</EscapedStrings>
66 <Terminal>\r</Terminal>
67 </RuleItem>
68 <RuleItem>
69 <Type>0</Type>
70 <Optional>0</Optional>
71 <Repetitive>0</Repetitive>
72 <AnyExcept>0</AnyExcept>
73 <EscapedStrings>-1</EscapedStrings>
74 <Terminal>\t</Terminal>
75 </RuleItem>
76 </RuleItems>
77 </Rule>
78 </Rules>
79 <TopRule>Main</TopRule>
80 <WhiteSpaceRule>WhiteSpace</WhiteSpaceRule>
81</GrammerProject>
Note: See TracBrowser for help on using the repository browser.