Skip to content

Commit

Permalink
Release 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Aug 18, 2024
1 parent 91b37fa commit 009db4d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
58 changes: 30 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ opt-level = 1

[workspace.package]
edition = "2021"
version = "0.1.0"
version = "0.2.0"
authors = ["Jonathan Brouwer <[email protected]>"]
license = "GPL-3.0-or-later"
license = "MPL-2.0"

[workspace.dependencies]
# Internal
prism-parser = { path = "./prism-parser", version = "0.1" }
prism-parser = { path = "./prism-parser", version = "0.2" }

# External
clap = { version = "4.5.8", default-features = false, features = ["help", "usage", "error-context", "std", "derive"] }
Expand Down
12 changes: 5 additions & 7 deletions prism-parser/src/parser/parser_rule_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,11 @@ pub fn parser_expr<'a, 'arn: 'a, 'grm: 'arn, E: ParseError<L = ErrorLabel<'grm>>
}
RuleExpr::NameBind(name, sub) => {
let res = parser_expr(rules, block_ctx, sub, vars).parse(pos, state, context);
res.map(|mut res| {
PR {
free: res
.free
.insert(name, VarMapValue::Value(res.rtrn), state.alloc),
rtrn: ActionResult::VOID,
}
res.map(|res| PR {
free: res
.free
.insert(name, VarMapValue::Value(res.rtrn), state.alloc),
rtrn: ActionResult::VOID,
})
}
RuleExpr::Action(sub, action) => {
Expand Down

0 comments on commit 009db4d

Please sign in to comment.