From 85b23fbee717f047af5a89eac6f4dba8e7812524 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Tue, 1 Jun 2021 18:21:02 +0300 Subject: restructuring --- src/backend/backend.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/backend/backend.h (limited to 'src/backend/backend.h') diff --git a/src/backend/backend.h b/src/backend/backend.h new file mode 100644 index 0000000..1857cd0 --- /dev/null +++ b/src/backend/backend.h @@ -0,0 +1,18 @@ +#ifndef BACKEND_H +#define BACKEND_H BACKEND_H +#include +#include + +/* + * describes a given state and the transitions coming out of it + * I should probbably have done this in the parsing stage + */ +struct State_And_Transitions +{ + struct AST_State *state; + size_t number_of_transitions; + struct AST_Transition *transitions[]; +}; +/*returns an array of state_and_transition structs*/ +struct State_And_Transitions** extract_transition_table(struct AST_States *states,struct AST_Transitions *transitions); +#endif -- cgit v1.2.3