Skip to content

Commit

Permalink
Code clean-up (#27)
Browse files Browse the repository at this point in the history
This PR cleans-up the current code so that future work will be easier.
I've also taken this opportunity to change a few core things that would
greatly affect the code-base as their own additions, but allow the
clean-up process to be quicker.

Some of the changes include:

- `Source`s are now used to create `Lexer`s and are used in errors, as
well as other places.
- The `Program` has been split-up into separate `Engine` and `Context`
types.
- `Intrinsic`s are no longer part of the module system, and are instead
in their own location.
- `Module`s are now namespaced, this feature is subject to change.

---------

Co-authored-by: Shane Vandegrift <[email protected]>
  • Loading branch information
Leon and Vandesm14 authored Apr 22, 2024
1 parent 1586e80 commit e4d308e
Show file tree
Hide file tree
Showing 79 changed files with 5,169 additions and 6,343 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/Cargo.lock
/target

/testing
/docs/.obsidian
/.cargo
/.cargo
Loading

0 comments on commit e4d308e

Please sign in to comment.