Package examples.ast


package examples.ast

The examples.ast package is an example Abstract Syntax Tree (AST) used in most language compilers.

Copyright (c) Francisco Ortin.

MIT license.

Author:
Francisco Ortin
  • Classes
    Class
    Description
    Assignments as statements.
    All nodes in the AST implement this ASTNode class.
    Expressions with two operands and one operator.
    Expressions of the language.
    Integer literals of the language.
    The root node of the AST representing a program.
    Read statement that represents reading from the keyboard.
    A generalization of any statement
    This node represents any type in the language, yet to be defined.
    An expression with one operand and one operator.
    Variables of the language.
    A write statement to write an output in the console.