From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- 21sh/autotools/src/parser/Makefile.am | 6 ++++++ 21sh/autotools/src/parser/parser.c | 11 +++++++++++ 21sh/autotools/src/parser/parser.h | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 21sh/autotools/src/parser/Makefile.am create mode 100644 21sh/autotools/src/parser/parser.c create mode 100644 21sh/autotools/src/parser/parser.h (limited to '21sh/autotools/src/parser') 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 + +#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 */ -- cgit v1.2.3