Refactor: fix UB, split inline headers, reorganize into src/, add examples - #12
Merged
Merged
Conversation
added 3 commits
June 18, 2026 00:42
- Introduced CLI module for command-line interface operations including REPL and file execution. - Added ConstexprLookup for compile-time string handling and type mapping. - Implemented custom exception handling with defined error types. - Created Late initialization class for deferred value assignment. - Developed utility functions for file reading and error reporting. - Established ByteCode enumeration for virtual machine operations. - Expanded Value module to support various data types and serialization. - Implemented main entry point for command-line execution with argument parsing.
…tions - Added LexicalScoping class for managing variable scoping and name resolution. - Implemented a Lexer for tokenizing source code, including handling keywords and identifiers. - Created a Preprocessor for reading files, removing comments, and handling imports. - Developed a CLI for interactive execution and script running with options for token and AST printing. - Introduced utility functions for error handling and file operations.
I changed it back because there was an edge case that I did not account for.
Owner
|
Looks neat! Good stuff with splitting the files into .hxx/.cxx. Next time please refrain from AI generated commit descriptions as they can be inaccurate. Otherwise, thank you very much for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the undefined behavior in ctype calls, replaced a 200 line dynamic_cast chain with std::visit, split 5 monolithic inline headers into .hxx/.cxx pairs, moved all source into src/, fixed the Makefile to glob, and added 16 .pie example files covering all language features.