Giter Site home page Giter Site logo

Comments (3)

taketo1024 avatar taketo1024 commented on July 17, 2024

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.

parrt avatar parrt commented on July 17, 2024

That is typical / "correct". You could fix with a left-recursive grammar.

from grammars-v4.

taketo1024 avatar taketo1024 commented on July 17, 2024

I see, thanks. I'll learn more about the grammar and try to fix it.

from grammars-v4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.