41 Commits (80c0daceaab70732f867db5998c2ac90b87e29e0)

Author SHA1 Message Date
  mtardy 80c0daceaa Treat single characters (delimited by single quotes) as integers 4 years ago
  mtardy e26c5c565f Clean some remaining comments and debugging printf 4 years ago
  mtardy 4f86f1cf3e
Add import statements (#10) 4 years ago
  mtardy 1f0bf64d84 Read directly from a file and/or stdin and improve error (with line and filename) at parsing time 4 years ago
  mtardy 38ca06d6aa Add the AST global object with all the protos attached to it for access 4 years ago
  mtardy c749e817cc Rename all the protos with Titlecase 4 years ago
  mtardy 78e17dbf35 Add syntax to extend the language via macro 4 years ago
  mtardy 3e08cb9394 Merge binary operators into assignments 4 years ago
  mtardy 07f07570db Add quasiquote and unquote mechanism, add 'syntax' fixed functions and use oop as functions name 4 years ago
  mtardy fafec91e1e Add name to Function struct to print them nicely 4 years ago
  mtardy 8aa2318855 Add experimental literal ast inside programs 4 years ago
  mtardy 0b35fd3794 Fix 'not' operator and add primitives keys and length 4 years ago
  mtardy d568212a6c Fix parser 'blank' rule 4 years ago
  mtardy 4286159da2
Many small changes to support object instanciation (#6) 4 years ago
  mtardy a0fee5b587
Add increment and decrement operators (#5) 4 years ago
  mtardy d132382ce0 Fix map creation in eval by cloning the ast node and evaluating all the values 4 years ago
  mtardy 27581da0e0 Add method invocation from object property with 'this' binding to access object properties 4 years ago
  mtardy b10ee10533 Factorize assign operations into a single rule 4 years ago
  mtardy 566b88dec1 Merge newSetMember/newSetIndex and newGetMember/newGetIndex into newSetMap and newGetMap 4 years ago
  mtardy fe1a8156d2 Add assignment operators such as +=, -=, ... 4 years ago
  mtardy 8e2badb3e9 Add return, break, continue statements with setjmp 4 years ago
  mtardy dc31fd1dc4 Convert tabs to spaces and fix indentation issues 4 years ago
  mtardy 6d20596796 Add for loop and switch statement 4 years ago
  mtardy 614bb8225b Add return 4 years ago
  mtardy e4435044d3 Optimizing integers 4 years ago
  mtardy 79144dfebb Move statement rule and fix identation 4 years ago
  mtardy ecdde3c52e Convert tabs to spaces and fix indentation issues 4 years ago
  mtardy 42ad489c1e Add compound statements 4 years ago
  mtardy 72c66c9995 Add unary, binary, ternary operator, while and semicolons as statement separator 4 years ago
  mtardy 75c1e685cf Add closure and optimize map_search for arrays 4 years ago
  mtardy f8078c49d5 Add draft of map_get for array-like access optimization 4 years ago
  mtardy 34b33bf34b Add function parameters support with simplistic local scope 4 years ago
  mtardy 85854f22cf Add simplistic function definition 4 years ago
  mtardy 1a5cf63394 Add primitive function call 4 years ago
  mtardy b80f2da496 Add map '[exp]' access and assignement 4 years ago
  mtardy cd50470f38 Add map 'dot' access and assignement 4 years ago
  mtardy f4ba755154 Flatten binary op and add var declaration 4 years ago
  mtardy 10fb7089b4 Add read node 4 years ago
  mtardy f1b05dc652 Add strings with a length attribute 4 years ago
  mtardy d92527ec1b Build and eval the AST for most binary operators 4 years ago
  mtardy b0f59db5cf Add Objects with prototypes 4 years ago
  mtardy 8957b242ad Fix symbol table 4 years ago
  mtardy 73fc6a9e08 Remove Symbol's value and defined and store them in Map KV 4 years ago
  mtardy 24949bad35 Add a scope parameter in intern function 4 years ago
  mtardy 93633e4d4c Remove table object, replace it with a 'globals' map 4 years ago
  mtardy d7d40f2b26 Indent fixes and remove comments 4 years ago
  mtardy 638db05828 Add Pr.Piumarta's code and reindent using spaces with width 4 4 years ago
  mtardy 895e834e15 Remove some others 'conversation' comments 4 years ago
  mtardy 3b8a5e75ad Change prim to exp in bracket map access even it might not make sense 4 years ago
  mtardy 2b1a210344 Add Map and String data structure 4 years ago