diff options
| -rw-r--r-- | src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 727f177..e45e611 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -6,7 +6,7 @@ use crate::tokenizer::{Token, TokenStream}; use crate::vm::{Value, Block, Op}; macro_rules! nextable_enum { - ( $name:ident { $( $thing:ident ),* } ) => { + ( $name:ident { $( $thing:ident ),* $( , )? } ) => { #[derive(PartialEq, PartialOrd, Clone, Copy, Debug)] enum $name { $( $thing, )* @@ -43,7 +43,7 @@ nextable_enum!(Prec { Bool, Comp, Term, - Factor + Factor, }); #[derive(Debug, Clone)] |
