blob: 1857cd06d6866e2bb1d7d14ae6f425ad4aecc722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef BACKEND_H
#define BACKEND_H BACKEND_H
#include <parser.h>
#include <ast_to_c.h>
/*
* 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
|