Replace object parser with lalr library
This commit is contained in:
parent
8f87c3bc33
commit
1293136343
13 changed files with 499 additions and 995 deletions
16
Objects/tests/TestParser.cpp
Normal file
16
Objects/tests/TestParser.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
#include "Testing.hpp"
|
||||
|
||||
#include "parser/parser.h"
|
||||
|
||||
using namespace tp;
|
||||
using namespace obj;
|
||||
|
||||
TEST_DEF_STATIC(Basic) {
|
||||
Parser parser;
|
||||
|
||||
String stream = "{ var i; print false; }";
|
||||
auto res = parser.parse(stream);
|
||||
}
|
||||
|
||||
TEST_DEF(Parser) { testBasic(); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue