Skip to main content

ISEC

ISEC stands for "Intext's Script Execution Core". It's Intext's execution engine that takes your code, and outputs it properly. It's chained by:

  1. Getting your source code

    output "Hello!";

  2. Lexing/tokening it into tokens for the Parser to read

[
{
"LINE": 1,
"TYPE": "KEYWORD",
"VAL": "output"
},
{
"LINE": 1,
"TYPE": "STRING",
"VAL": "Hello!"
},
{
"LINE": 1,
"TYPE": "SYMBOL",
"VAL": ";"
}
]
  1. Then the Parser parses it into an Abstract Syntax Tree (AST), whilst checking for correct syntax
[
{
"line": 1,
"meta": {
"print_type": "simple",
"raw_type": "STRING"
},
"type": "output",
"value": "Hello!"
}
]
  1. Then running it through a phase called a "Validator" which makes sure called variables were declared and function args are correct

  2. The Interpreter then executes it based on what's given

Hello!