Skip to content

Commit

Permalink
chore: 对编译代码进行了优化
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed May 14, 2024
1 parent 00b2ba7 commit 538b85c
Show file tree
Hide file tree
Showing 3 changed files with 2,029 additions and 4,835 deletions.
2 changes: 1 addition & 1 deletion roll.peg
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ _diceType3 <- nos [dD]
_diceType4 <- [dD]

// XdY 中的 dy 部分,跟上面 _diceTypeX 一一对应
_diceExpr1 <- [dD] { c.data.AddOp(typeDiceInit); c.data.AddOp(typeDiceSetTimes); return nil; } nos _diceMod? _diceModType2?
_diceExpr1 <- [dD] { c.data.AddOp(typeDiceInit); c.data.AddOp(typeDiceSetTimes); } nos _diceMod? _diceModType2?
_diceExpr2 <- [dD] { c.data.AddOp(typeDiceInit); } nos (_dicePearMod / _diceMod)? _diceModType2?
_diceExpr3 <- [dD] { c.data.AddOp(typeDiceInit); c.data.AddOp(typeDiceSetTimes); } (_dicePearMod / _diceMod)? _diceModType2?

Expand Down
Loading

0 comments on commit 538b85c

Please sign in to comment.