support remainder assignment operator

This commit is contained in:
Jean Mertz 2019-03-16 22:08:50 +01:00
parent 9a59272f5f
commit a8ee994ae0
No known key found for this signature in database
GPG key ID: D41E2C2760F4E0F4
3 changed files with 218 additions and 0 deletions

View file

@ -155,6 +155,7 @@ fn current_op(p: &Parser) -> (u8, Op) {
(PLUS, EQ) => return (1, Op::Composite(PLUSEQ, 2)),
(MINUS, EQ) => return (1, Op::Composite(MINUSEQ, 2)),
(STAR, EQ) => return (1, Op::Composite(STAREQ, 2)),
(PERCENT, EQ) => return (1, Op::Composite(PERCENTEQ, 2)),
(SLASH, EQ) => return (1, Op::Composite(SLASHEQ, 2)),
(PIPE, EQ) => return (1, Op::Composite(PIPEEQ, 2)),
(AMP, EQ) => return (1, Op::Composite(AMPEQ, 2)),