summaryrefslogtreecommitdiff
path: root/21sh/autotools/src/parser
diff options
context:
space:
mode:
Diffstat (limited to '21sh/autotools/src/parser')
-rw-r--r--21sh/autotools/src/parser/Makefile.am6
-rw-r--r--21sh/autotools/src/parser/parser.c11
-rw-r--r--21sh/autotools/src/parser/parser.h6
3 files changed, 23 insertions, 0 deletions
diff --git a/21sh/autotools/src/parser/Makefile.am b/21sh/autotools/src/parser/Makefile.am
new file mode 100644
index 0000000..c8fe590
--- /dev/null
+++ b/21sh/autotools/src/parser/Makefile.am
@@ -0,0 +1,6 @@
+lib_LIBRARIES = libparser.a
+
+libparser_a_SOURCES = parser.c parser.h $(top_srcdir)/src/lexer/lexer.c $(top_srcdir)/src/lexer/lexer.h
+libparser_a_CPPFLAGS = -I$(top_srcdir)/src
+libparser_a_CFLAGS = -std=c99 -Werror -Wall -Wextra -Wvla -pedantic
+noinst_LIBRARIES = libparser.a
diff --git a/21sh/autotools/src/parser/parser.c b/21sh/autotools/src/parser/parser.c
new file mode 100644
index 0000000..28f5824
--- /dev/null
+++ b/21sh/autotools/src/parser/parser.c
@@ -0,0 +1,11 @@
+#include "parser.h"
+
+#include <stdio.h>
+
+#include "lexer/lexer.h"
+
+void print_parser()
+{
+ print_lexer();
+ printf("parser !!!\n");
+}
diff --git a/21sh/autotools/src/parser/parser.h b/21sh/autotools/src/parser/parser.h
new file mode 100644
index 0000000..38d2ae3
--- /dev/null
+++ b/21sh/autotools/src/parser/parser.h
@@ -0,0 +1,6 @@
+#ifndef PARSER_H
+#define PARSER_H
+
+void print_parser();
+
+#endif /* ! PARSER_H */