Skip to content

关于Assignment2的问题 #43

Description

@Henryexcellentw

1:Step1里的token具体指什么?文档里把identifier和number当做token我没有太理解。
2:lex里的yylval.token、yytext,yyleeng这些东西在哪里定义的?
3:yacc规则里的这个例子我还是没有理解,大括号最上方要出现的东西,如果EXPR:NUMBER表示文法EXPR->NUMBER,那其他复杂一些的文法怎么表示呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions