Newer
Older
minerva / Userland / Libraries / LibGLSL / Tests / parser / for-statement.ast
@minerva minerva on 13 Jul 781 bytes Initial commit
TranslationUnit[0:0->5:0]
  FunctionDeclaration[0:0->5:0]
    Type[0:0->0:3]
      void
    main
    (
    )
    FunctionDefinition[1:0->5:0]
    {
      VariableDeclaration[2:4->2:13]
        Type[2:4->2:6]
          int
        b
        NumericLiteral[2:12->2:12]
          0
      ForStatement[3:4->4:11]
      Initializer:
        VariableDeclaration[3:9->3:18]
          Type[3:9->3:11]
            int
          a
          NumericLiteral[3:17->3:17]
            0
      Test expression:
        BooleanLiteral[3:20->3:23]
          true
      Update expression:
        UnaryExpression[3:26->3:29]
          postfix ++
          Name[3:26->3:26]
            a
      Body:
        UnaryExpression[4:8->4:11]
          postfix ++
          Name[4:8->4:8]
            b
    }