Skip to content

Commit

Permalink
Make LeMP SFG work in netstd version of project
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertie committed Jul 6, 2020
1 parent 81cdde0 commit 46d0b30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Main/Ecs/Loyc.Ecs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
<DesignTime>True</DesignTime>
<DependentUpon>EcsParserGrammar.les</DependentUpon>
</Compile>
<None Include="Parser\EcsLexerGrammar.les">
<None Update="Parser\EcsLexerGrammar.les">
<Generator>LLLPG</Generator>
<CustomToolNamespace>--timeout=20</CustomToolNamespace>
<LastGenOutput>EcsLexerGrammar.out.cs</LastGenOutput>
</None>
<None Include="Parser\EcsParserGrammar.les">
<None Update="Parser\EcsParserGrammar.les">
<Generator>LLLPG</Generator>
<CustomToolNamespace>--timeout=10</CustomToolNamespace>
<LastGenOutput>EcsParserGrammar.out.cs</LastGenOutput>
Expand Down
2 changes: 1 addition & 1 deletion Main/Ecs/Parser/EcsLexerGrammar.out.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from EcsLexerGrammar.les by LeMP custom tool. LeMP version: 2.8.0.0
// Generated from EcsLexerGrammar.les by LeMP custom tool. LeMP version: 2.8.1.0
// Note: you can give command-line arguments to the tool via 'Custom Tool Namespace':
// --no-out-header Suppress this message
// --verbose Allow verbose messages (shown by VS as 'warnings')
Expand Down
22 changes: 11 additions & 11 deletions Main/Ecs/Parser/EcsParserGrammar.out.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from EcsParserGrammar.les by LeMP custom tool. LeMP version: 2.8.0.0
// Generated from EcsParserGrammar.les by LeMP custom tool. LeMP version: 2.8.1.0
// Note: you can give command-line arguments to the tool via 'Custom Tool Namespace':
// --no-out-header Suppress this message
// --verbose Allow verbose messages (shown by VS as 'warnings')
Expand Down Expand Up @@ -2265,8 +2265,8 @@ private LNode SubExpr(Precedence context)
{
la0 = LA0;
if (context.CanParse(prec = InfixPrecedenceOf(la0))) {
if (context.CanParse(EP.Shift)) {
if (LT(0).EndIndex == LT(0 + 1).StartIndex) {
if (LT(0).EndIndex == LT(0 + 1).StartIndex) {
if (context.CanParse(EP.Shift)) {
la1 = LA(1);
if (PrefixExpr_set0.Contains((int) la1))
goto match1;
Expand All @@ -2288,8 +2288,8 @@ private LNode SubExpr(Precedence context)
else
goto stop;
}
} else if (context.CanParse(EP.Shift)) {
if (LT(0).EndIndex == LT(0 + 1).StartIndex) {
} else if (LT(0).EndIndex == LT(0 + 1).StartIndex) {
if (context.CanParse(EP.Shift)) {
la1 = LA(1);
if (la1 == TT.GT || la1 == TT.LT)
goto match4;
Expand Down Expand Up @@ -3248,7 +3248,7 @@ LNode KeywordStmt(int startIndex, LNodeList attrs, bool hasWordAttrs)
LNode r;
bool addAttrs = true;
string showWordAttrErrorFor = null;
// Line 1260: ( ((IfStmt | EventDecl | DelegateDecl | SpaceDecl | EnumDecl | CheckedOrUncheckedStmt | DoStmt | CaseStmt | ReturnBreakContinueThrow TT.Semicolon) | (GotoCaseStmt TT.Semicolon / GotoStmt TT.Semicolon) | SwitchStmt | WhileStmt | ForStmt | ForEachStmt) | (UsingStmt / UsingDirective) | LockStmt | FixedStmt | TryStmt | PPStringDirective | PPNullaryDirective )
// Line 1260: ( ((IfStmt | EventDecl | DelegateDecl | SpaceDecl | EnumDecl | CheckedOrUncheckedStmt | DoStmt | CaseStmt | ReturnBreakContinueThrow TT.Semicolon) | (GotoCaseStmt TT.Semicolon / GotoStmt TT.Semicolon) | SwitchStmt | WhileStmt | ForStmt | ForEachStmt) | (UsingStmt / UsingDirective) | LockStmt | FixedStmt | TryStmt | PPNullaryDirective | PPStringDirective )
do {
switch (LA0) {
case TT.If:
Expand Down Expand Up @@ -3341,12 +3341,12 @@ LNode KeywordStmt(int startIndex, LNodeList attrs, bool hasWordAttrs)
case TT.Try:
r = TryStmt(startIndex);
break;
case TT.CSIload: case TT.CSIreference: case TT.PPnullable:
r = PPStringDirective(startIndex);
break;
case TT.CSIclear: case TT.CSIhelp: case TT.CSIreset:
r = PPNullaryDirective(startIndex);
break;
case TT.CSIload: case TT.CSIreference: case TT.PPnullable:
r = PPStringDirective(startIndex);
break;
default:
goto error;
}
Expand Down Expand Up @@ -4480,8 +4480,8 @@ private LNode VarInitializer(bool isArray)
// Line 1609: (&{isArray} &{Down($LI) && Up(HasNoSemicolons())} TT.LBrace TT.RBrace / ExprStart)
la0 = LA0;
if (la0 == TT.LBrace) {
if (isArray) {
if (Down(0) && Up(HasNoSemicolons())) {
if (Down(0) && Up(HasNoSemicolons())) {
if (isArray) {
var lb = MatchAny();
var rb = Match((int) TT.RBrace);
// line 1613
Expand Down

0 comments on commit 46d0b30

Please sign in to comment.