Skip to content

johron/vol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vol

Embeddable scripting language

Code sample

Functions

function add |x, y|  does
    returns x + y
end

add |1, 2|

function hello do
    print "Hello, World!"
end

hello

Comments

# Regular comment 

Plan

  • Remove return keyword, have like rust where if there are just tokens then return the result of the tokens.
  • Problem wtih spaces being picked up in lexer, which makes stuff like function calls, variable references, numbers, strings not be recognized and tokonized correctly.

Building

git clone https://github.com/johron/vol.git
cd vol
cargo build

About

Embeddable scripting language

Topics

Resources

License

Stars

Watchers

Forks

Languages