Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Sep 18, 2024
1 parent af28888 commit 533a210
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions partable-parser/src/tests/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ enum Symbol {
IntegerMulHole,
Add,
IntegerAddHole,
// TODO: Remove the need for this.
SIZE, // NOT A SYMBOL NEEDED TO constexpr determine the size of the enum.
}

fn classify_char(ch: char) -> Option<Symbol> {
Expand Down Expand Up @@ -222,10 +220,9 @@ const EMPTY_ROW: Vec<Entry> = Vec::new();
const DEFAULT_TABLE: [Vec<Entry>; Symbol::COUNT] = [EMPTY_ROW; Symbol::COUNT];

fn run_test(input: &str) {
// TODO: Ideally this would be const / compile time.
let symbols: Vec<Symbol> = Symbol::iter().collect();
for sym in symbols {
println!("SYMBOL: {sym:?}");
for symbol in symbols {
println!("SYMBOL: {:?}", symbol);
}
for rule in RULES {
println!("RULE: {rule:?}");
Expand Down Expand Up @@ -255,6 +252,7 @@ fn run_test(input: &str) {
};
for rule in RULES {
run_rule(&mut state, &rule);
println!();
}
// println!("{entries:#?}");
todo!();
Expand Down

0 comments on commit 533a210

Please sign in to comment.