diff options
author | Jakob Kaivo <jkk@ungol.org> | 2020-03-31 11:55:52 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ungol.org> | 2020-03-31 11:55:52 -0400 |
commit | 07589e2bebb4e13bdcd5073eb912f308fffdf226 (patch) | |
tree | 63f8e45bfde1919a38e5de8345402f534894a48b | |
parent | ca626081e233020d7bf4a5a3c9a986d717053eba (diff) |
basic implementationl
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | libl.c | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0292b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +*.a diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..58c22de --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.POSIX: + +LIB=libl + +$(LIB).a: $(LIB).o + $(AR) rv $@ $(LIB).o + +$(LIB).o: $(LIB).c + $(CC) $(CFLAGS) -c $(LIB).c + +clean: + rm -f *.a *.o @@ -0,0 +1,13 @@ +extern int yylex(void); + +int yywrap(void) +{ + return 1; +} + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + return yylex(); +} |