Skip to content

Commit

Permalink
General improvement
Browse files Browse the repository at this point in the history
Now produces a basic parse tree.
  • Loading branch information
Clownacy committed Feb 15, 2022
1 parent b96f89a commit 33c162e
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 3,840 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/build
/clownassembler
/clownassembler.exe
/parser.c
/parser.h
/lexer.c
/lexer.h
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ all: generators

generators: lexer.c lexer.h parser.c parser.h

lexer.c lexer.h: spl.l
flex --outfile=lexer.c --header-file=lexer.h $^
lexer.c lexer.h: spl.l parser.h
flex --outfile=lexer.c --header-file=lexer.h $<

parser.c parser.h: spl.y
bison --output=parser.c --header=parser.h --debug $^
bison --output=parser.c --header=parser.h --debug $<

clownassembler: main.c lexer.c parser.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
Loading

0 comments on commit 33c162e

Please sign in to comment.