diff --git a/ast_8h.html b/ast_8h.html index 0ebc4759..051997cd 100644 --- a/ast_8h.html +++ b/ast_8h.html @@ -96,22 +96,25 @@
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
@@ -133,6 +136,20 @@ ,
  AST_EMPTY , AST_UNEXPECTED +, AST_REDIRECTION +, AST_PIPELINE +,
+  AST_WHILE +, AST_UNTIL +, AST_FOR +, AST_AND_OR +,
+  AST_NEGATE +, AST_AND +, AST_OR +, AST_COMMAND +,
+  AST_WORD_ASSIGNMENT
}  Enumerate the different types of AST nodes. More...
@@ -185,6 +202,17 @@

AST_WORD  AST_EMPTY  AST_UNEXPECTED  +AST_REDIRECTION  +AST_PIPELINE  +AST_WHILE  +AST_UNTIL  +AST_FOR  +AST_AND_OR  +AST_NEGATE  +AST_AND  +AST_OR  +AST_COMMAND  +AST_WORD_ASSIGNMENT  diff --git a/ast_8h__dep__incl.map b/ast_8h__dep__incl.map index 2c8a1d00..246c122e 100644 --- a/ast_8h__dep__incl.map +++ b/ast_8h__dep__incl.map @@ -1,18 +1,21 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/ast_8h__dep__incl.md5 b/ast_8h__dep__incl.md5 index fd6ae02d..803cef32 100644 --- a/ast_8h__dep__incl.md5 +++ b/ast_8h__dep__incl.md5 @@ -1 +1 @@ -a3fe7885fe0f095b677a54d6b8a7f2ce \ No newline at end of file +bd6f445d00dbc6d5616a20f4be55457a \ No newline at end of file diff --git a/ast_8h__dep__incl.png b/ast_8h__dep__incl.png index 17385cb8..afb9b3f5 100644 Binary files a/ast_8h__dep__incl.png and b/ast_8h__dep__incl.png differ diff --git a/ast_8h_source.html b/ast_8h_source.html index 599ceef3..773cd358 100644 --- a/ast_8h_source.html +++ b/ast_8h_source.html @@ -86,47 +86,69 @@ -
28 };
-
29 
-
34 struct ast_node
-
35 {
-
36  enum ast_type type;
-
37  struct ast_node **children;
- -
39  char *value;
-
40 };
-
41 
-
47 struct ast_node *ast_node_new(enum ast_type type);
-
48 
-
54 void ast_append(struct ast_node *parent, struct ast_node *child);
-
55 
-
60 void ast_free(struct ast_node *node);
-
61 
-
67 struct ast_node *ast_node_word(char *value);
-
68 
-
74 char *ast_type_to_string(enum ast_type type);
-
75 
-
81 void print_ast(struct ast_node *node, int depth, bool logger_enabled);
-
82 
-
83 #endif /* ! AST_H */
+ + + + + + + + + + + +
39 };
+
40 
+
45 struct ast_node
+
46 {
+
47  enum ast_type type;
+
48  struct ast_node **children;
+ +
50  char *value;
+
51 };
+
52 
+
58 struct ast_node *ast_node_new(enum ast_type type);
+
59 
+
65 void ast_append(struct ast_node *parent, struct ast_node *child);
+
66 
+
71 void ast_free(struct ast_node *node);
+
72 
+
78 struct ast_node *ast_node_word(char *value);
+
79 
+
85 char *ast_type_to_string(enum ast_type type);
+
86 
+
92 void print_ast(struct ast_node *node, int depth, bool logger_enabled);
+
93 
+
94 #endif /* ! AST_H */
struct ast_node * ast_node_word(char *value)
Create a new AST node of type AST_WORD.
Definition: ast.c:22
char * ast_type_to_string(enum ast_type type)
Convert an AST type to a string.
Definition: ast.c:58
-
void print_ast(struct ast_node *node, int depth, bool logger_enabled)
Create a new AST node of type AST_SIMPLE_COMMAND.
Definition: ast.c:77
+
void print_ast(struct ast_node *node, int depth, bool logger_enabled)
Create a new AST node of type AST_SIMPLE_COMMAND.
Definition: ast.c:97
struct ast_node * ast_node_new(enum ast_type type)
Create a new AST node.
Definition: ast.c:13
ast_type
Enumerate the different types of AST nodes.
Definition: ast.h:21
+
@ AST_FOR
Definition: ast.h:32
+
@ AST_UNTIL
Definition: ast.h:31
+
@ AST_WORD_ASSIGNMENT
Definition: ast.h:38
@ AST_EMPTY
Definition: ast.h:26
+
@ AST_WHILE
Definition: ast.h:30
+
@ AST_AND_OR
Definition: ast.h:33
@ AST_CONDITION
Definition: ast.h:23
+
@ AST_AND
Definition: ast.h:35
+
@ AST_REDIRECTION
Definition: ast.h:28
@ AST_UNEXPECTED
Definition: ast.h:27
@ AST_COMMAND_LIST
Definition: ast.h:24
+
@ AST_COMMAND
Definition: ast.h:37
+
@ AST_PIPELINE
Definition: ast.h:29
+
@ AST_OR
Definition: ast.h:36
@ AST_WORD
Definition: ast.h:25
+
@ AST_NEGATE
Definition: ast.h:34
@ AST_SIMPLE_COMMAND
Definition: ast.h:22
void ast_free(struct ast_node *node)
Free an AST node.
Definition: ast.c:41
void ast_append(struct ast_node *parent, struct ast_node *child)
Append a child to a node.
Definition: ast.c:29
-
Structure representing a node of the AST.
Definition: ast.h:35
-
struct ast_node ** children
Definition: ast.h:37
-
int children_count
Definition: ast.h:38
-
char * value
Definition: ast.h:39
-
enum ast_type type
Definition: ast.h:36
+
Structure representing a node of the AST.
Definition: ast.h:46
+
struct ast_node ** children
Definition: ast.h:48
+
int children_count
Definition: ast.h:49
+
char * value
Definition: ast.h:50
+
enum ast_type type
Definition: ast.h:47