Skip to content

MSonD/Dw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dw
DW is a experimental lisp-like scripting language.
Right now is nearly useless.

Examples:


(+ 5 7)
=> 12

5 (* 5 1)
=>[5 5]

let x (def (+ 4 2))
=> //some tokens

x
=> 6

if (> 9 8) ("GOOd")("not good")

=> "GOOd"

let super (def (x y) (+ (* x x) (* y y)))

=> //a lot of tokens

super 2 3

=> 13


The lexer is really stable and even uses message passing to send tokens to the parser.
Tree building is quite ugly and there is room for optimization.
Parsing is messy and there are lots of things to improve
 (hint, using std.variant all the way around[quite useful but costly < I think >] )

Releases

No releases published

Packages

No packages published

Languages