Skip to content

Commit

Permalink
[lang] Remove backtracks from the grammar.
Browse files Browse the repository at this point in the history
Backtracks make the parser less efficient, and the other tools may have
a partial behavior due to them, e.g. content assist.

see #406

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jul 24, 2016
1 parent b3db7cb commit 5b042d2
Show file tree
Hide file tree
Showing 30 changed files with 156,110 additions and 90,489 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,20 +1,20 @@
'!'=83
'!='=65
'!=='=67
'#'=119
'#'=120
'%'=82
'%='=63
'&&'=27
'&'=134
'('=91
')'=92
'&'=135
'('=100
')'=101
'*'=79
'**'=80
'*='=61
'+'=77
'++'=84
'+='=59
','=90
','=93
'-'=78
'--'=85
'-='=60
Expand All @@ -24,8 +24,8 @@
'..<'=72
'/'=81
'/='=62
':'=89
'::'=135
':'=98
'::'=136
';'=28
'<'=70
'<>'=75
Expand All @@ -35,83 +35,84 @@
'=>'=74
'>'=69
'>='=68
'?'=133
'?.'=136
'?'=134
'?.'=137
'?:'=76
'@'=118
'@'=119
'AFTER'=48
'BEFORE'=49
'ELSE'=116
'ELSEIF'=117
'ENDFOR'=113
'ENDIF'=115
'FOR'=112
'IF'=114
'ELSE'=117
'ELSEIF'=118
'ENDFOR'=114
'ENDIF'=116
'FOR'=113
'IF'=115
'SEPARATOR'=50
'['=97
']'=98
'['=105
']'=106
'abstract'=34
'agent'=104
'agent'=94
'annotation'=47
'as'=109
'behavior'=106
'capacity'=105
'case'=123
'catch'=132
'as'=110
'behavior'=95
'capacity'=92
'case'=124
'catch'=133
'class'=52
'create'=46
'def'=44
'default'=111
'default'=112
'dispatch'=36
'do'=125
'else'=122
'do'=126
'else'=123
'enum'=53
'event'=103
'event'=89
'extends'=54
'extension'=51
'false'=88
'final'=37
'finally'=131
'fires'=93
'for'=108
'if'=121
'finally'=132
'fires'=103
'for'=109
'if'=122
'implements'=55
'import'=56
'instanceof'=120
'instanceof'=121
'interface'=57
'native'=39
'new'=95
'null'=126
'on'=96
'new'=99
'null'=127
'on'=104
'override'=45
'package'=33
'private'=31
'protected'=32
'public'=30
'requires'=100
'return'=129
'skill'=107
'requires'=108
'return'=130
'skill'=96
'space'=97
'static'=35
'strictfp'=38
'super'=87
'switch'=110
'switch'=111
'synchronized'=41
'throw'=128
'throw'=129
'throws'=58
'transient'=42
'true'=138
'try'=130
'typeof'=127
'uses'=99
'true'=139
'try'=131
'typeof'=128
'uses'=107
'val'=29
'var'=43
'volatile'=40
'while'=124
'with'=94
'{'=101
'|'=137
'while'=125
'with'=102
'{'=90
'|'=138
'||'=26
'}'=102
'}'=91
RULE_ANY_OTHER=24
RULE_COMMENT_RICH_TEXT_END=14
RULE_COMMENT_RICH_TEXT_INBETWEEN=12
Expand Down Expand Up @@ -172,6 +173,7 @@ T__135=135
T__136=136
T__137=137
T__138=138
T__139=139
T__25=25
T__26=26
T__27=27
Expand Down

0 comments on commit 5b042d2

Please sign in to comment.