Skip to content

Commit

Permalink
Fix: grammar mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaredanwolfgang committed Nov 18, 2024
1 parent a71b2c9 commit a0e904d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ mod tests {
#[test]
fn test_1_r02() {
assert_parse_from_file(Parser::ProgramParser, "../test/test_1_r02.spl",
"Statement: GlobalVariable: [Variable Declaration: global = [0: i32] with dimensions []], Statement: Struct: Struct Definition: my_struct with [Variable Declaration: code = [0: i32] with dimensions [], Variable Declaration: data = [ : char] with dimensions []], Functions: Function: test_1_r02:[Body: [Struct Declaration: my_struct extends obj with [], Struct Assignment: obj.code = global, Variable Assignment: global = (global + 1: i32)]]"
"Statement: GlobalVariable: [Variable Declaration: global = [0: i32] with dimensions []], Statement: Struct: Struct Definition: my_struct with [Variable Declaration: code = [0: i32] with dimensions [], Variable Declaration: data = [ : char] with dimensions []], Functions: Function: test_1_r02:[Body: [Struct Declaration: my_struct extends obj with [], Struct Assignment: obj.code = global, Variable Assignment: global = (global + 1: i32)]]");
}

// #[test]
Expand Down

0 comments on commit a0e904d

Please sign in to comment.