alpha
Login
or
Join now
solune.tngl.sh
/
retlang
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Concept language with mix of assembly and C headers
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
retlang
/
backend
/
src
/
utils
/
at
gitbutler/workspace
4 files
isofinly
refactor: Update module visibility and improve code readability
1y ago
5b74fe69
core.rs
refactor: Organize compiler modules and improve error handling - Changed `pub mod ast;` to `mod ast;` in `mod.rs` for better encapsulation. - Added new `semantics.rs` file to the compiler module. - Updated error message handling in `core.rs` to use `to_string()` for consistency. - Refactored `NamedSource::new` in `error.rs` to accept `filename` directly. - Replaced local `byte_offset_to_line_col` function with the one from `utils::loc` in `tokens.rs`. - Moved `byte_offset_to_line_col` function to `loc.rs` for better utility access. - Adjusted `fmt::Display` implementation for `Loc` struct in `core.rs` to use a lifetime specifier.
1 year ago
gcc.rs
refactor: Update module visibility and improve code readability - Changed `utils` module from `pub(crate)` to `pub` for broader accessibility. - Simplified token handling in the lexer by removing unnecessary string allocations. - Updated various structs and enums in the compiler to use lifetimes for better memory management. - Enhanced error messages in the compiler for clarity. - Refactored code generation in the transpiler for improved readability and maintainability.
1 year ago
loc.rs
feat: Implement tests for lexer, squash some bugs
1 year ago
mod.rs
feat: Enhance compiler and CLI with transpilation and library support - Added `Transpile` command to CLI for converting source code to JavaScript. - Updated `Compile` command to support linking with external libraries. - Refactored `compile` function to return generated C code as a string. - Introduced `gcc` module for handling C compilation. - Removed unused `linker` module and related files. - Updated README to reflect address space limitations.
1 year ago