Class BeerAstPrinter

Implements

Method

parenthesize - Parenthesize a string

Method

print - Print a string

Hierarchy

  • BeerAstPrinter

Implements

Constructors

Methods

  • Parameters

    • lines: string

    Returns string

  • Parameters

    • name: string
    • Rest ...exprs: Expr[]

      {Expr[]} expressions

    Returns string

    string

  • Print expression

    Parameters

    • expr: Expr

      {Expr} expression

    Returns string

  • Print ast of the statements

    Parameters

    • stmt: Stmt[]

      {Stmt[]} statements

    Returns void

  • Print all the expressions

    Parameters

    Returns string

  • Parameters

    Returns string

    string

  • Parameters

    Returns string

    string

  • Generate ast for the statements in the block

    Parameters

    Returns string

    parenthesize version of the ast block

  • Parameters

    Returns string

    string

  • Generate ast for the class statements

    Parameters

    Returns string

    string

  • Parameters

    Returns string

    parenthesize version of the ast expression

  • Parameters

    Returns string

  • Generate ast for the function statements

    Parameters

    Returns string

    parenthesize version of the ast function

  • Parameters

    Returns string

  • Parameters

    Returns string

    string

  • Generate ast for if statements in the block

    Parameters

    • stmt: IfStmt

      {IfStmt} statement

    Returns string

    parenthesize version of the ast if

  • Parameters

    Returns string

    string

  • Parameters

    Returns string

    string

  • Parameters

    Returns string

    parenthesize version of the ast print

  • Generate ast for the if statements in the block

    Parameters

    Returns string

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Parameters

    Returns string

    string

  • Parameters

    • stmt: VarStmt

      {VarStmt} statement

    Returns string

    parenthesize version of the ast var

  • Parameters

    Returns string

    name of the variable

  • Generate ast for the while statement in the block

    Parameters

    Returns string

    string ast of while statement

Generated using TypeDoc