Commit Graph

5 Commits

Author SHA1 Message Date
Nicolas Abril
d82ed4d61a feat: add inline attr, separate kdl compiler passes
Add an inline attribute that substitutes a function
  application for the body of the rule that matches.
This is still limited and rejects many easily
  rewritable programs.
We would need to compile the intermediate terms to HVM
  and normalize them then to properly and efficiently
  handle all valid inlining cases.

I also separated each of the passes of the kdl compiler
  to separate functions that go over the whole AST.
This is probably less efficient, but makes it easier
  to reuse this code for other targets and to develop
  new passes.

This commit also does some light refactoring of other
  things surrounding the kdl compiler.
2022-10-12 18:01:18 +02:00
Felipe g
49063557e7 Add target 2022-09-30 10:08:31 -03:00
Nicolas Abril
a07e8e584e Add option to use namespace on kdl compilation 2022-09-27 21:06:34 +02:00
Felipe g
dd7b02f939 Added timeout in everything 2022-09-26 11:06:24 -03:00
Felipe g
ad7cd30fc5 Tests 2022-09-21 13:05:53 -03:00