Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed precedence bug

  • Loading branch information...
sphinxc0re committed Mar 1, 2018
1 parent 5c9a63c commit ab389c7b8fa58b9b38e71cfbc826945c4f6b620e
Showing with 6 additions and 3 deletions.
  1. +0 −1 Cargo.lock
  2. +0 −1 Cargo.toml
  3. +5 −0 examples/beast/simple/else_if.beast
  4. +1 −1 src/beast.pest

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -12,7 +12,6 @@ license = "MIT"
travis-ci = { repository = "bakervm/bakervm" }

[dependencies]
clap = "^2.24.2"
structopt = "0.2"
error-chain = "^0.11.0"
serde_derive = "^1.0.6"
@@ -7,6 +7,11 @@
(else
(push %st, 2.0)
(call $add_some_values))))
(func $some_func
(if (gte %st, %st)
(call $something)
(else (if (lt %st, %st)
(push %st, 20)))))
(export $add_some_values))

(; This is a multiline comment,
@@ -164,7 +164,7 @@ if_cond = { opening_brace ~ if_cond_keyword ~ condition ~ instr* ~ (opening_brac

// condition
condition = { opening_brace ~ conditional_func ~ target ~ comma ~ (literal | target) ~ closing_brace }
conditional_func = { equal | greater | less | greater_or_equal | less_or_equal }
conditional_func = { greater_or_equal | less_or_equal | greater | equal | less }
equal = @{ "eq" }
greater = @{ "gt" }
less = @{ "lt" }

0 comments on commit ab389c7

Please sign in to comment.
You can’t perform that action at this time.