Skip to content

CapricornFBQ/JonathanScriptCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JonathanScriptCompiler

A compiler for JonathanScript( JS) ;)

  1. The Lexer translates JonathanScript into tokens.
  2. The Parser parses the tokens and generates the AST.
  3. The Compiler compiles the AST into bytecode (instructions).
  4. The Virtual Machine executes the bytecode. The run function decodes the instructions, processes them, and pushes the results onto the stack.

Execution process:

Lexer Parser Compiler VM
source --------> token --------> AST --------> code (Instructions []byte) --------> result

About

A compiler for JonathanScript( JS) ;)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages