diff options
Diffstat (limited to 'dice-lang/src/bjc/dicelang/Shunter.java')
| -rw-r--r-- | dice-lang/src/bjc/dicelang/Shunter.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dice-lang/src/bjc/dicelang/Shunter.java b/dice-lang/src/bjc/dicelang/Shunter.java index 38f49be..28ae117 100644 --- a/dice-lang/src/bjc/dicelang/Shunter.java +++ b/dice-lang/src/bjc/dicelang/Shunter.java @@ -30,8 +30,9 @@ public class Shunter { // applied to operator tokens and yield data tokens private Set<Token.Type> unaryGerunds; - private final int MATH_PREC = 20; - private final int DICE_PREC = 10; + private final int MATH_PREC = 30; + private final int DICE_PREC = 20; + private final int STR_PREC = 10; private final int EXPR_PREC = 0; public Shunter() { @@ -56,6 +57,9 @@ public class Shunter { ops.put(DICELIST, 2 + DICE_PREC); + ops.put(STRCAT, 0 + STR_PREC); + + ops.put(STRREP, 1 + STR_PREC); ops.put(LET, 0 + EXPR_PREC); ops.put(BIND, 1 + EXPR_PREC); } |
