diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /21sh/autotools/src/parser | |
Diffstat (limited to '21sh/autotools/src/parser')
| -rw-r--r-- | 21sh/autotools/src/parser/Makefile.am | 6 | ||||
| -rw-r--r-- | 21sh/autotools/src/parser/parser.c | 11 | ||||
| -rw-r--r-- | 21sh/autotools/src/parser/parser.h | 6 |
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 */ |
