mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Generate the parser and the lexer
This commit is contained in:
parent
bc96c4518e
commit
1474ecfe42
1 changed files with 5 additions and 1 deletions
|
@ -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 $<
|
||||
|
|
Loading…
Reference in a new issue