@@ -5,10 +5,13 @@ class parsley_termactions(GrammarBase):
5
5
def rule_ruleValue (self ):
6
6
_locals = {'self' : self }
7
7
self .locals ['ruleValue' ] = _locals
8
+ self ._trace (' ws' , (11 , 14 ), self .input .position )
8
9
_G_apply_1 , lastError = self ._apply (self .rule_ws , "ws" , [])
9
10
self .considerError (lastError , 'ruleValue' )
11
+ self ._trace (" '->'" , (14 , 19 ), self .input .position )
10
12
_G_exactly_2 , lastError = self .exactly ('->' )
11
13
self .considerError (lastError , 'ruleValue' )
14
+ self ._trace (' term' , (19 , 24 ), self .input .position )
12
15
_G_apply_3 , lastError = self ._apply (self .rule_term , "term" , [])
13
16
self .considerError (lastError , 'ruleValue' )
14
17
_locals ['tt' ] = _G_apply_3
@@ -20,15 +23,20 @@ def rule_ruleValue(self):
20
23
def rule_semanticPredicate (self ):
21
24
_locals = {'self' : self }
22
25
self .locals ['semanticPredicate' ] = _locals
26
+ self ._trace (' ws' , (64 , 67 ), self .input .position )
23
27
_G_apply_5 , lastError = self ._apply (self .rule_ws , "ws" , [])
24
28
self .considerError (lastError , 'semanticPredicate' )
29
+ self ._trace (" '?('" , (67 , 72 ), self .input .position )
25
30
_G_exactly_6 , lastError = self .exactly ('?(' )
26
31
self .considerError (lastError , 'semanticPredicate' )
32
+ self ._trace (' term' , (72 , 77 ), self .input .position )
27
33
_G_apply_7 , lastError = self ._apply (self .rule_term , "term" , [])
28
34
self .considerError (lastError , 'semanticPredicate' )
29
35
_locals ['tt' ] = _G_apply_7
36
+ self ._trace (' ws' , (80 , 83 ), self .input .position )
30
37
_G_apply_8 , lastError = self ._apply (self .rule_ws , "ws" , [])
31
38
self .considerError (lastError , 'semanticPredicate' )
39
+ self ._trace (" ')'" , (83 , 87 ), self .input .position )
32
40
_G_exactly_9 , lastError = self .exactly (')' )
33
41
self .considerError (lastError , 'semanticPredicate' )
34
42
_G_python_10 , lastError = eval ('t.Predicate(tt)' , self .globals , _locals ), None
@@ -39,15 +47,20 @@ def rule_semanticPredicate(self):
39
47
def rule_semanticAction (self ):
40
48
_locals = {'self' : self }
41
49
self .locals ['semanticAction' ] = _locals
50
+ self ._trace (' ws' , (124 , 127 ), self .input .position )
42
51
_G_apply_11 , lastError = self ._apply (self .rule_ws , "ws" , [])
43
52
self .considerError (lastError , 'semanticAction' )
53
+ self ._trace (" '!('" , (127 , 132 ), self .input .position )
44
54
_G_exactly_12 , lastError = self .exactly ('!(' )
45
55
self .considerError (lastError , 'semanticAction' )
56
+ self ._trace (' term' , (132 , 137 ), self .input .position )
46
57
_G_apply_13 , lastError = self ._apply (self .rule_term , "term" , [])
47
58
self .considerError (lastError , 'semanticAction' )
48
59
_locals ['tt' ] = _G_apply_13
60
+ self ._trace (' ws' , (140 , 143 ), self .input .position )
49
61
_G_apply_14 , lastError = self ._apply (self .rule_ws , "ws" , [])
50
62
self .considerError (lastError , 'semanticAction' )
63
+ self ._trace (" ')'" , (143 , 147 ), self .input .position )
51
64
_G_exactly_15 , lastError = self .exactly (')' )
52
65
self .considerError (lastError , 'semanticAction' )
53
66
_G_python_16 , lastError = eval ('t.Action(tt)' , self .globals , _locals ), None
@@ -59,22 +72,27 @@ def rule_application(self):
59
72
_locals = {'self' : self }
60
73
self .locals ['application' ] = _locals
61
74
def _G_optional_17 ():
75
+ self ._trace (' indentation' , (178 , 190 ), self .input .position )
62
76
_G_apply_18 , lastError = self ._apply (self .rule_indentation , "indentation" , [])
63
77
self .considerError (lastError , None )
64
78
return (_G_apply_18 , self .currentError )
65
79
def _G_optional_19 ():
66
80
return (None , self .input .nullError ())
67
81
_G_or_20 , lastError = self ._or ([_G_optional_17 , _G_optional_19 ])
68
82
self .considerError (lastError , 'application' )
83
+ self ._trace (' name' , (191 , 196 ), self .input .position )
69
84
_G_apply_21 , lastError = self ._apply (self .rule_name , "name" , [])
70
85
self .considerError (lastError , 'application' )
71
86
_locals ['name' ] = _G_apply_21
72
87
def _G_or_22 ():
88
+ self ._trace ("'('" , (221 , 224 ), self .input .position )
73
89
_G_exactly_23 , lastError = self .exactly ('(' )
74
90
self .considerError (lastError , None )
91
+ self ._trace (' term_arglist' , (224 , 237 ), self .input .position )
75
92
_G_apply_24 , lastError = self ._apply (self .rule_term_arglist , "term_arglist" , [])
76
93
self .considerError (lastError , None )
77
94
_locals ['args' ] = _G_apply_24
95
+ self ._trace (" ')'" , (242 , 246 ), self .input .position )
78
96
_G_exactly_25 , lastError = self .exactly (')' )
79
97
self .considerError (lastError , None )
80
98
_G_python_26 , lastError = eval ('t.Apply(name, self.rulename, args)' , self .globals , _locals ), None
0 commit comments