1. split Vector into TightVector and Vector

2. implement basic of DateObject
3. implement continue statement

this patch passes 3d-raytrace.js

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2016-12-09 13:55:47 +09:00
commit 8acbfcfe52
21 changed files with 190 additions and 105 deletions

View file

@ -47,6 +47,9 @@ CodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context* ctx, String
if (!codeBlock->hasName(uname)) {
CodeBlock* c = codeBlock->parentCodeBlock();
while (c) {
if (uname.string()->equals("green")) {
puts("sadf");
}
if (c->tryCaptureIdentifiersFromChildCodeBlock(uname))
break;
c = c->parentCodeBlock();
@ -87,7 +90,7 @@ ScriptParser::ScriptParserResult ScriptParser::parse(StringView scriptSource, St
// dump Code Block
#ifndef NDEBUG
if (getenv("DUMP_CODEBLOCK_TREE") && strlen(getenv("DUMP_CODEBLOCK_TREE"))) {
std::function<void(CodeBlock*, size_t depth)> fn = [&](CodeBlock* cb, size_t depth) {
std::function<void(CodeBlock*, size_t depth)> fn = [&fn](CodeBlock* cb, size_t depth) {
#define PRINT_TAB() \
for (size_t i = 0; i < depth; i++) { \