aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs4
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)]