Skip to content

Commit

Permalink
Add IR processing for concurrent graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
acweathersby committed Jan 28, 2024
1 parent 8e2f994 commit 8636359
Show file tree
Hide file tree
Showing 24 changed files with 1,387 additions and 490 deletions.
32 changes: 16 additions & 16 deletions crates/radlr-core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,13 @@ impl RadlrGraph {
// ----------------------------------------------------------------------------------------

pub struct RadlrIRParser {
j: Journal,
db: SharedParserDatabase,
config: ParserConfig,
states: ParseStatesVec,
j: Journal,
db: SharedParserDatabase,
config: ParserConfig,
states: ParseStatesVec,
classification: ParserClassification,
is_optimized: bool,
pub report: OptimizationReport,
is_optimized: bool,
pub report: OptimizationReport,
}

impl JournalReporter for RadlrIRParser {
Expand Down Expand Up @@ -449,11 +449,11 @@ pub fn empty_source_path() -> RadlrResult<()> {
}

pub struct TestPackage {
pub journal: Journal,
pub states: ParseStatesVec,
pub db: SharedParserDatabase,
pub config: ParserConfig,
pub report: OptimizationReport,
pub journal: Journal,
pub states: ParseStatesVec,
pub db: SharedParserDatabase,
pub config: ParserConfig,
pub report: OptimizationReport,
pub classification: ParserClassification,
}

Expand Down Expand Up @@ -492,11 +492,11 @@ impl ParserStore for TestPackage {
impl From<RadlrIRParser> for TestPackage {
fn from(value: RadlrIRParser) -> Self {
TestPackage {
config: value.config,
journal: value.j.transfer(),
states: value.states.into_iter().collect(),
db: value.db,
report: value.report,
config: value.config,
journal: value.j.transfer(),
states: value.states.into_iter().collect(),
db: value.db,
report: value.report,
classification: value.classification,
}
}
Expand Down
Loading

0 comments on commit 8636359

Please sign in to comment.