Comments (3)
this one if for parsing a single function-call:
NSLog(@"hello");
* 8 statement: 'NSLog' - ';'
* 9 expression: 'NSLog' - ')'
* 10 assignment_expression: 'NSLog' - ')'
* 11 conditional_expression: 'NSLog' - ')'
* 12 logical_or_expression: 'NSLog' - ')'
* 13 logical_and_expression: 'NSLog' - ')'
* 14 inclusive_or_expression: 'NSLog' - ')'
* 15 exclusive_or_expression: 'NSLog' - ')'
* 16 and_expression: 'NSLog' - ')'
* 17 equality_expression: 'NSLog' - ')'
* 18 relational_expression: 'NSLog' - ')'
* 19 shift_expression: 'NSLog' - ')'
* 20 additive_expression: 'NSLog' - ')'
* 21 multiplicative_expression: 'NSLog' - ')'
* 22 cast_expression: 'NSLog' - ')'
* 23 unary_expression: 'NSLog' - ')'
* 24 postfix_expression: 'NSLog' - ')'
* 25 primary_expression: 'NSLog'
* 25 argument_expression_list: '@"hello"'
* 26 assignment_expression: '@"hello"'
* 27 conditional_expression: '@"hello"'
* 28 logical_or_expression: '@"hello"'
* 29 logical_and_expression: '@"hello"'
* 30 inclusive_or_expression: '@"hello"'
* 31 exclusive_or_expression: '@"hello"'
* 32 and_expression: '@"hello"'
* 33 equality_expression: '@"hello"'
* 34 relational_expression: '@"hello"'
* 35 shift_expression: '@"hello"'
* 36 additive_expression: '@"hello"'
* 37 multiplicative_expression: '@"hello"'
* 38 cast_expression: '@"hello"'
* 39 unary_expression: '@"hello"'
* 40 postfix_expression: '@"hello"'
* 41 primary_expression: '@"hello"'
from grammars-v4.
That is typical / "correct". You could fix with a left-recursive grammar.
from grammars-v4.
I see, thanks. I'll learn more about the grammar and try to fix it.
from grammars-v4.
Related Issues (20)
- [csharp grammar] CSharp and Java producing different error messages for expected tokens HOT 1
- Fortran f90 grammar: problems parsing END SELECT HOT 8
- [fortran] Add latest Fortran grammar, addressing issues in older versions HOT 14
- [Go target] Dependabot removes the dependency to Antlr4.13.1 and so breaks the Go builds HOT 1
- Fortran90: status can be a legit variable, not always a keyword HOT 11
- Contribution: C++ Object Notation (CPPON)
- [fortran90] Parser does not distinguish between "fixed form" or "free form"--but they cannot mix!
- [fortran90] "primary" rule deviates from the Draft Spec, with no explanation, and does not work!
- How to recognize schema name at CreateTable HOT 13
- mkindex.py/reindex.py produces invalid json HOT 1
- _scripts/mkindex.py doesn't work on Windows with Pwsh.exe
- [static-check]Deprecated module [email protected] / [email protected] HOT 4
- [build] "perf" workflow isn't working because Octave cannot install
- Quoted sequence in range bound parsed incorrectly (PCRE.g4) HOT 4
- TSQL dynamic sql not parsed on single quotes HOT 1
- [build] CSharp templates slightly out of date
- [plsql] rule range_partition_desc contains an optional block with at least one alternative that can match an empty string
- [build] Python3 driver program Test.py has wrong syntax for string comparison of command-line options
- [r] The R grammar contains an ambiguity in the desc.xml
- [DB2] - why not support DB2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grammars-v4.