From 8103cadfc95fb76539bfccc893a2101ccb89ea90 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 28 Jun 2024 15:09:32 +0200 Subject: Add data structures for tokenizing and parsing * Add data structures and helper functions for ast * Add data structures for tokenizing * Add helper functions for token structures * Include token.h in minishell.h * Add new/free functions for nodes/tokens to Makefile * Add UNREACHABLE macro to debug_tools.h--- include/ast.h | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ include/debug_tools.h | 3 +- include/minishell.h | 4 ++- include/token.h | 49 ++++++++++++++++++++++++++++++++ 4 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 include/ast.h create mode 100644 include/token.h (limited to 'include') diff --git a/include/ast.h b/include/ast.h new file mode 100644 index 0000000..e6ad25d --- /dev/null +++ b/include/ast.h @@ -0,0 +1,79 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ast.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser # include diff --git a/include/token.h b/include/token.h new file mode 100644 index 0000000..38e758f --- /dev/null +++ b/include/token.h @@ -0,0 +1,49 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* token.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser