Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] CMinus code example3. #20

Open
Sh-Zh-7 opened this issue Jun 14, 2021 · 1 comment
Open

[test] CMinus code example3. #20

Sh-Zh-7 opened this issue Jun 14, 2021 · 1 comment
Labels
code CMinus code test.

Comments

@Sh-Zh-7
Copy link
Owner

Sh-Zh-7 commented Jun 14, 2021

int inc()
{
    int i;
    i = i + 1;
}
@Sh-Zh-7 Sh-Zh-7 added the code CMinus code test. label Jun 14, 2021
@github-actions
Copy link

Compile successfully. The result is:

Program(1)
  ExtDefList(1)
    ExtDef(1)
      Specifier(1)
        TYPE: int
      FunDec(1)
        ID: inc
        LP
        RP
      CompSt(2)
        LC
        DefList(3)
          Def(3)
            Specifier(3)
              TYPE: int
            DecList(3)
              Dec(3)
                VarDec(3)
                  ID: i
            SEMI
        StmtList(4)
          Stmt(4)
            Exp(4)
              Exp(4)
                ID: i
              ASSIGNOP
              Exp(4)
                Exp(4)
                  ID: i
                PLUS
                Exp(4)
                  INT: 1
            SEMI
        RC

@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Jun 14, 2021
@Sh-Zh-7 Sh-Zh-7 pinned this issue Jun 14, 2021
@Sh-Zh-7 Sh-Zh-7 unpinned this issue Jun 14, 2021
@Sh-Zh-7 Sh-Zh-7 pinned this issue Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code CMinus code test.
Projects
None yet
Development

No branches or pull requests

1 participant