Grammar

This page provides grammar for the language.

Please ignore this page if you have no knowledge about programming language grammar.

program := decl*
decl := useDecl
      | classDecl
      | funcDecl
      | varDecl
      | letDecl
      | stmt
stmt := blockStmt
      | breakStmt
      | continueStmt
      | forStmt
      | ifStmt
      | putsStmt
      | returnStmt
      | throwStmt
      | whileStmt
      | (assign | modifying | call)
expr := array
      | assign
      | binary
      | call
      | logical
      | map
      | modifying
      | primary
      | ternary
      | unary
      | variable
primary := IDENTIFIER
         | NUMBER
         | STRING
         | LITERAL

Last updated