blob: b6e0233996334a77f12071abec6976e5974ceca4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include "ast.h"
typedef struct ParseRet{
// Exactly one of ast and errstr is non-NULL. The non-NULL member
// needs to be free'd.
AST *ast;
char *errstr;
} ParseRet;
ParseRet parse(const char *source,int length);
|