Skip to content

Commit

Permalink
enable more tests & fix PHP & Dart target - potentially
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Lüpges <[email protected]>
  • Loading branch information
luepges committed Nov 30, 2023
1 parent e3ca726 commit fe4d260
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ s
[skip]
##Cpp
##CSharp
Dart
##Dart
##Go
##Java
##JavaScript
##PHP
##Python3
Swift
##Swift
TypeScript
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ bool _<r.name>_sempred(dynamic _localctx, int predIndex) {

RuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs,namedActions,finallyAction,postamble,exceptions) ::= <<

<if(currentRule.modifiers)><currentRule.modifiers:{f | <f> }><else><endif><currentRule.ctxType> <currentRule.escapedName>(<[args, currentRule.hasDelegatedPrecedence:{_|{int _dp=0\}}]; separator=", ">) {
<if(currentRule.modifiers)><currentRule.modifiers:{f | <f> }><else><endif><currentRule.ctxType> <currentRule.escapedName>(<[args, currentRule.hasDelegatedPrecedence:{_|{int dp=0\}}]; separator=", ">) {
dynamic _localctx = <currentRule.ctxType>(context, state<currentRule.args:{a | , <a.escapedName>}>);
enterRule(_localctx, <currentRule.startState>, RULE_<currentRule.name>);
<namedActions.init>
Expand Down Expand Up @@ -541,7 +541,7 @@ cases(tokens) ::= <<

InvokeRule(r, argExprsChunks) ::=<<
state = <r.stateNumber>;
<if(r.labels)><r.labels:{l | <labelref(l)> = }><endif><r.escapedName>(<[r.ast.options.p, argExprsChunks, r.ast.options.dp]; separator=",">);
<if(r.labels)><r.labels:{l | <labelref(l)> = }><endif><r.escapedName>(<[{<if(r.ast.options.pv)>dp<else><r.ast.options.p><endif>}, argExprsChunks, r.ast.options.dp]; separator=",">);
>>

MatchToken(m) ::= <<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ cases(tokens) ::= <<

InvokeRule(r, argExprsChunks) ::= <<
$this->setState(<r.stateNumber>);
<if(r.labels)><r.labels:{l | <labelref(l)> = }><endif>$this-><if(r.ast.options.p)>recursive<r.name; format="cap"><else><r.name><endif>(<[{<if(r.ast.options.pv)>$<endif><r.ast.options.p>}, argExprsChunks, r.ast.options.dp]; separator=",">);
<if(r.labels)><r.labels:{l | <labelref(l)> = }><endif>$this-><if(r.ast.options.p&&!r.ast.options.pv)>recursive<r.name; format="cap"><else><r.name><endif>(<[{<if(r.ast.options.pv)>$<endif><r.ast.options.p>}, argExprsChunks, r.ast.options.dp]; separator=",">);
>>

MatchToken(m) ::= <<
Expand Down

0 comments on commit fe4d260

Please sign in to comment.