Skip to content
/ Nail Public

Lexer, Parser, Interpreter, and Compiler (to nasm) writtin in nim for a incomplete language. This will not be finished but my demonstrate how to do some of these things.

Notifications You must be signed in to change notification settings

intangere/Nail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nail

Lexer, Parser, Interpreter, and Compiler (to nasm) writtin in nim for a incomplete language. This will not be finished but may demonstrate how to do some of these things.
Look at the code in tests to see how it works
Any code with functions defined will only run in the interpreter
Syntax
-Space based

  • fn -> Create a function
    • -> add
    • -> subtract
  • := -> Bind the value of one variable to others which allows for reactive properties (Ex. a = 5, b = 3, c := a + b, a = 1, c's value will change)
  • echo -> print to screen
  • func_name() -> call a function

About

Lexer, Parser, Interpreter, and Compiler (to nasm) writtin in nim for a incomplete language. This will not be finished but my demonstrate how to do some of these things.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages