Skip to content

Commit

Permalink
nixd/Syntax: move .cpp files to /lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Sep 16, 2023
1 parent 9c16e20 commit 40ff0a7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nixd/lib/Syntax/Lexer.l → nixd/lib/Syntax/Lexer/Lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


%{
#include "nixd/Syntax/Lexer/Prologue.cpp"
#include "Lexer/Prologue.cpp"
%}


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

%{
#include "nixd/Syntax/Parser/Prologue.cpp"
#include "Parser/Prologue.cpp"
%}

%union {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions nixd/lib/Syntax/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ bison = find_program('bison')
# https://github.com/NixOS/nix/blob/a1cf16563f681b5cb3026f2bbca629996ed36d86/src/libexpr/local.mk#L31

lexer = custom_target('lexer'
, input : [ 'Lexer.l' ]
, input : [ 'Lexer/Lexer.l' ]
, output : [ '@[email protected]', '@[email protected]' ]
, command : [ flex, '--outfile=@OUTPUT0@', '--header-file=@OUTPUT1@', '@INPUT@' ]
)

parser = custom_target('parser'
, input : [ 'Parser.y' ]
, input : [ 'Parser/Parser.y' ]
, output : [ '@[email protected]', '@[email protected]' ]
, command : [ bison, '@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@' ]
)
Expand Down

0 comments on commit 40ff0a7

Please sign in to comment.