aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--properties.y12
1 files changed, 12 insertions, 0 deletions
diff --git a/properties.y b/properties.y
index a765c8a..dcb7fb2 100644
--- a/properties.y
+++ b/properties.y
@@ -15,6 +15,18 @@
%%
+properties: property
+ | properties property
+ ;
+
+property: KEY DIV value {
+ printf("<%s> ---> <%s>\n", $1.value, $3.value);
+ }
+ | KEY DIV {
+ printf("<%s> ---> NO VALUE\n", $1.value);
+ }
+ ;
+
value: VALUE {
$$.value = calloc(2, sizeof(char));
strcat($$.value, $1.value);