Skip to content

Commit eb949f4

Browse files
author
Rajesh Jinaga
committed
Fix a bug in parser
1 parent a436669 commit eb949f4

File tree

5 files changed

+207
-242
lines changed

5 files changed

+207
-242
lines changed

src/Simpleflow/Parser/Grammar/SimpleflowParser.g4

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,15 @@ functionParameter
112112
// Literals
113113

114114
objectIdentifier
115-
: identifierIndex {this.NotLineTerminator()}? (Dot {this.NotLineTerminator()}? identifierIndex)*
115+
: identifierIndex (Dot identifierIndex)*
116116
;
117-
118117

119118
identifierIndex
120-
: Identifier {this.NotLineTerminator()}? index?
119+
: Identifier index?
121120
;
122121

123122
index
124-
: OpenBracket {this.NotLineTerminator()}? indexExpression {this.NotLineTerminator()}? CloseBracket
123+
: OpenBracket indexExpression CloseBracket
125124
;
126125

127126
indexExpression

0 commit comments

Comments
 (0)