From 1474ecfe426ef69bbb376df82fd0c48e7dedf606 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 22 Nov 2013 16:22:31 +0100 Subject: [PATCH] Generate the parser and the lexer --- src/libexpr/Makefile.new | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libexpr/Makefile.new b/src/libexpr/Makefile.new index f6c9004315..5664365841 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 $<