- Remove Grammar.cpp; CMake wraps oscript.g verbatim into a generated oscript.g.hpp raw-string header that Parser.cpp includes directly - oscript grammar now has a single source of truth (oscript.g) - AST builder handles oscript.g's actual tags: untagged empty list/script alternatives and the stm_break tag All Objects tests pass.
13 lines
240 B
C++
13 lines
240 B
C++
|
|
#pragma once
|
|
|
|
#include "SimpleParser.hpp"
|
|
|
|
#include "compiler/Statements.hpp"
|
|
#include "compiler/Expressions.hpp"
|
|
|
|
namespace tp::obj {
|
|
|
|
using OScriptParser = tp::SimpleParser<char>;
|
|
using OScriptNode = const OScriptParser::StackItem*;
|
|
}
|