aboutsummaryrefslogtreecommitdiff
path: root/demos/instant-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/instant-parser.c')
-rw-r--r--demos/instant-parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/instant-parser.c b/demos/instant-parser.c
index 57d1f2f..06990f6 100644
--- a/demos/instant-parser.c
+++ b/demos/instant-parser.c
@@ -16,9 +16,9 @@ enum symbol {
size_t total_symbols = SYMBOLS_END;
-IMPLEMENT_FUNCPTR(int, symbol_is_terminal, (symbol s), { return s < EP; })
-IMPLEMENT_FUNCPTR(int, symbol_is_input_end, (symbol s), { return s == END_INPUT; })
-IMPLEMENT_FUNCPTR(int, symbol_is_valid,(symbol s), { return s < SYMBOLS_END; })
+IMPLEMENT_FUNCPTR(int, symbol_is_terminal, (symbol s)) { return s < EP; }
+IMPLEMENT_FUNCPTR(int, symbol_is_input_end, (symbol s)) { return s == END_INPUT; }
+IMPLEMENT_FUNCPTR(int, symbol_is_valid,(symbol s)) { return s < SYMBOLS_END; }
#include "parts/grammar.h"
#define PROD(LHS, _, ...) {LHS, (symbol[]){__VA_ARGS__}, sizeof((symbol[]){__VA_ARGS__})/sizeof(symbol)}