Expressions

Expression types

  • Conditional
  • Binary
  • Indexing

Conditional

  • Returns a boolean.

  • Standard form:

    <TERM> <CONDITIONAL_OPERATOR> <TERM>
    

Binary

  • Standard form:

    <TERM> <MATHEMATICAL_OPERATOR> <TERM>
    

Indexing

  • Returns type at index of array.

  • Standard form:

    <TERM>[<INDEX>]
    

Index

  • An Expr -> UNumber | String | Ident