grammar done
This commit is contained in:
parent
ad543c304d
commit
e628e7c1e2
6 changed files with 1612 additions and 1191 deletions
|
|
@ -37,9 +37,9 @@ namespace obj {
|
|||
struct StatementFuncDef : public Statement {
|
||||
tp::Buffer<tp::String> mArgs;
|
||||
tp::String mFunctionId;
|
||||
tp::Buffer<Statement*> mStatements;
|
||||
StatementScope* mStatements;
|
||||
|
||||
StatementFuncDef(tp::String function_id, tp::InitialierList<tp::String> args, tp::InitialierList<Statement*> statements);
|
||||
StatementFuncDef(tp::String function_id);
|
||||
};
|
||||
|
||||
struct StatementLocalDef : public Statement {
|
||||
|
|
@ -101,7 +101,8 @@ namespace obj {
|
|||
};
|
||||
|
||||
// Helpers
|
||||
StatementFuncDef* StmDefFunc(tp::String id, tp::InitialierList<tp::String> args, tp::InitialierList<Statement*> stms);
|
||||
StatementFuncDef*
|
||||
StmDefFunc(tp::String id, tp::InitialierList<tp::String> args, tp::InitialierList<Statement*> stms);
|
||||
StatementLocalDef* StmDefLocal(tp::String id, Expression* value);
|
||||
StatementCopy* StmCopy(Expression* left, Expression* right);
|
||||
StatementPrint* StmPrint(Expression* target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue