Skip to content

Commit

Permalink
[parser] Reorganize source parser code into smaller inline mods (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamChou19815 authored Dec 28, 2023
1 parent 046d3f4 commit 41c8391
Show file tree
Hide file tree
Showing 2 changed files with 696 additions and 624 deletions.
4 changes: 2 additions & 2 deletions crates/samlang-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn parse_source_module_from_text(
module_reference,
builtins,
);
parser.parse_module()
source_parser::parse_module(parser)
}

pub fn parse_source_expression_from_text(
Expand All @@ -45,7 +45,7 @@ pub fn parse_source_expression_from_text(
module_reference,
builtins,
);
parser.parse_expression_with_comment_store()
source_parser::parse_expression_with_comment_store(parser)
}

pub fn builtin_std_raw_sources(heap: &mut Heap) -> HashMap<ModuleReference, String> {
Expand Down
Loading

0 comments on commit 41c8391

Please sign in to comment.