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/ast/Makefile.am | 6 ++++++ 21sh/autotools/src/ast/ast.c | 11 +++++++++++ 21sh/autotools/src/ast/ast.h | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 21sh/autotools/src/ast/Makefile.am create mode 100644 21sh/autotools/src/ast/ast.c create mode 100644 21sh/autotools/src/ast/ast.h (limited to '21sh/autotools/src/ast') diff --git a/21sh/autotools/src/ast/Makefile.am b/21sh/autotools/src/ast/Makefile.am new file mode 100644 index 0000000..d455958 --- /dev/null +++ b/21sh/autotools/src/ast/Makefile.am @@ -0,0 +1,6 @@ +lib_LIBRARIES = libast.a + +libast_a_SOURCES = ast.c ast.h +libast_a_CPPFLAGS = -I$(top_srcdir)/src +libast_a_CFLAGS = -std=c99 -Werror -Wall -Wextra -Wvla -pedantic +noinst_LIBRARIES = libast.a diff --git a/21sh/autotools/src/ast/ast.c b/21sh/autotools/src/ast/ast.c new file mode 100644 index 0000000..084dbf9 --- /dev/null +++ b/21sh/autotools/src/ast/ast.c @@ -0,0 +1,11 @@ +#include "ast.h" + +#include + +#include "parser/parser.h" + +void print_ast() +{ + printf("ast !!!\n"); + print_parser(); +} diff --git a/21sh/autotools/src/ast/ast.h b/21sh/autotools/src/ast/ast.h new file mode 100644 index 0000000..83d52b3 --- /dev/null +++ b/21sh/autotools/src/ast/ast.h @@ -0,0 +1,6 @@ +#ifndef AST_H +#define AST_H + +void print_ast(); + +#endif /* ! AST_H */ -- cgit v1.2.3