2023-12-08 15:59:45 +01:00
|
|
|
#ifndef DEF_UTILS_H
|
|
|
|
#define DEF_UTILS_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the CodePosition of a node
|
|
|
|
*/
|
|
|
|
CodePosition get_node_pos(Node node);
|
|
|
|
|
2023-12-08 16:19:41 +01:00
|
|
|
/**
|
|
|
|
* Returns the Type associated with a type name
|
|
|
|
*/
|
|
|
|
Type string_to_type(string type_name);
|
|
|
|
|
2023-12-08 15:59:45 +01:00
|
|
|
#endif
|