From 2a20043edb282dff05c9832b1576bf8894dd6473 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 22 Jul 2024 17:19:33 +0200 Subject: Add a first draft of the parser --- properties.y | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 properties.y (limited to 'properties.y') diff --git a/properties.y b/properties.y new file mode 100644 index 0000000..69d683d --- /dev/null +++ b/properties.y @@ -0,0 +1,22 @@ +%{ + +#include +#include + +%} + +%token KEY DIV VALUE + +%% + +value: VALUE + | VALUE value + ; + +%% + +void +yyerror(char *s) +{ + fprintf(stderr, "%s\n", s); +} -- cgit v1.2.3