Skip to content

Refactor: fix UB, split inline headers, reorganize into src/, add examples - #12

Merged
AliAlmutawaJr merged 3 commits into
AliAlmutawaJr:mainfrom
TheDevConnor:main
Jun 18, 2026
Merged

Refactor: fix UB, split inline headers, reorganize into src/, add examples#12
AliAlmutawaJr merged 3 commits into
AliAlmutawaJr:mainfrom
TheDevConnor:main

Conversation

@TheDevConnor

Copy link
Copy Markdown

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.

Connor Harris 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.
@AliAlmutawaJr

Copy link
Copy Markdown
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!

@AliAlmutawaJr
AliAlmutawaJr merged commit f41bf62 into AliAlmutawaJr:main Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants