about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-22T15·22+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-22T15·22+0100
commit1474ecfe426ef69bbb376df82fd0c48e7dedf606 (patch)
treeab1aa1a46de3664a4a3f23035b652d8a2884d324 /src
parentbc96c4518e4430f0cd996b2c77fe8e08d7694efa (diff)
Generate the parser and the lexer
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/Makefile.new6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libexpr/Makefile.new b/src/libexpr/Makefile.new
index f6c900431562..566436584178 100644
--- a/src/libexpr/Makefile.new
+++ b/src/libexpr/Makefile.new
@@ -7,4 +7,8 @@ libexpr_SOURCES = \
   get-drvs.cc attr-path.cc value-to-xml.cc value-to-json.cc \
   common-opts.cc names.cc
 
-# FIXME: add rules for parser-tab.cc / lexer-tab.cc.
+$(here)parser-tab.cc $(here)parser-tab.hh: $(here)parser.y
+	bison -v -o $(here)parser-tab.cc $< -d
+
+$(here)lexer-tab.cc $(here)lexer-tab.hh: $(here)lexer.l
+	flex --outfile $(here)lexer-tab.cc --header-file=$(here)lexer-tab.hh $<