Embedded programming language for Zig
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update README.md

IamPyu 1166fd89 60c39617

+1 -34
+1 -34
README.md
··· 1 1 # zexa 2 2 3 - Pyu's Extension Language 4 - 5 - ## TODO 6 - 7 - - [X] Implement lexer 8 - - [X] Implement parser and AST 9 - - [X] Environment 10 - - [X] Interpreter 11 - 12 - ## Syntax 13 - 14 - The syntax looks like Lisp: 15 - 16 - ```lisp 17 - ;; this is a comment 18 - 19 - (add 3 4) ; + is a function, it takes 1 or more arguments 20 - (sub 4 3) 21 - (mul 4 3) 22 - (div 4 3) ; all these functions corrospond to their respective mathematical operators 23 - 24 - nil ; null, no value, etc. 25 - 1 ; number 26 - "foobar" ; string 27 - :foobar ; atom 28 - 'foobar ; quoted symbol 29 - foobar ; symbol, usually evaluates to a defined variable or nil 30 - 31 - ;; defun is a macro that defines a function 32 - (defun hello (x) 33 - ;; function body here 34 - ) 35 - 36 - ``` 3 + This branch contains the Zig rewrite of Zexa.