This allows us to write out errors that follow the call stack and give
locations to where errors originated.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This is the path to the location that this span is pointing to. This is
usually going to be a file path, but it can really be anything you want.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This helps split up expressions, meta calls (like includes) that can be
expanded into more expressions.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
We're turing-complete, babey!
* Call stack for functions now differentiates between native and quote
calls
* Better API for builtin functions allowing for more control
* Example showing off branches
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
* crate::scope instead of crate::syn::word, which makes more sense
because scopes are not really used in syntax at all
* Reference-counted BuiltinFn values are available for creation now
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Nothing fancy yet. This commit adds a bunch of stuff (oops):
* compiling code
* VM with instructions
* remove eval.rs and just eval in the Machine struct itself
* squash most warnings now that we're using stuff here
And probably more. But that's all for now folks
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>