aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontend/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/parser.h')
-rw-r--r--src/frontend/parser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frontend/parser.h b/src/frontend/parser.h
index 4745f63..8845507 100644
--- a/src/frontend/parser.h
+++ b/src/frontend/parser.h
@@ -62,6 +62,7 @@ struct AST_Transition
struct AST_State *from;
struct AST_State *to;
struct AST_Event *event;
+ struct AST *granted;
struct AST *statement;
};
struct AST_Command
@@ -135,6 +136,8 @@ struct AST_Event* parse_event(struct Translation_Data *translation_data);
struct AST_Transitions* parse_transitions_inner(struct Translation_Data *translation_data,struct AST_States *states,struct AST_Events *events );
struct AST_Transition* parse_transition(struct Translation_Data *translation_data,struct AST_States *states,struct AST_Events *events);
+struct AST* parse_transition_granted(struct Translation_Data *translation_data,struct AST_States *states,struct AST_Events *events);
+
struct AST* parse_statement(struct Translation_Data *translation_data,struct AST_States *states,struct AST_Events *events);
struct AST_Pipeline* parse_pipeline(struct Translation_Data *translation_data);
@@ -149,9 +152,9 @@ struct AST* parse_primary_expression(struct Translation_Data *translation_data);
struct AST_State* get_ast_state(struct token *id);
struct AST_Event* get_ast_event(struct token *id);
-struct AST_States* get_ast_states(struct Queue *states);
+struct AST_States* get_ast_states(struct Queue *states,struct Translation_Data *translation_data);
struct AST_Events* get_ast_events(struct Queue *events);
-struct AST_Transition* get_ast_transition(struct AST_State *from,struct AST_State *to,struct AST_Event *event,struct AST *statement);
+struct AST_Transition* get_ast_transition(struct AST_State *from,struct AST_State *to,struct AST_Event *event,struct AST *granted,struct AST *statement);
struct AST_Command* get_ast_command(struct token *function_name,struct token *argument);
struct AST_Pipeline* get_ast_pipeline(struct Queue *pipeline);
struct AST_Machine* get_ast_machine(struct token *id,struct AST_States *states,struct AST_Events *events,struct AST_Transitions *transitions,struct AST_State *starting_state);