Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 594 Bytes

tokenizer-format.md

File metadata and controls

55 lines (47 loc) · 594 Bytes

Program

{
  "type": "Program",
  "body": []
}

import

{
  "type": "ImportDeclaration",
  "value": ""
},

Variable

  • variable name can only contain alphabetical characters
  • variables can only store strings
{
  "type": "VariableDeclaration",
  "name": "",
  "value": ""
},
{
  "type": "VariableCall",
  "name": ""
},
{
  "type": "VariableReassign",
  "name": "",
  "value": ""
}

Function

{
  "type": "FunctionDeclaration",
  "name": "",
  "args": [],
  "body": []
},
{
  "type": "FunctionCall",
  "name": "",
  "args": [],
}