implement heredoc

This commit is contained in:
FUKUZAWA-Tadashi
2013-03-03 20:08:13 +09:00
parent bc46c374b4
commit 1af4110f7d
6 changed files with 347 additions and 12 deletions
+5
View File
@@ -1902,6 +1902,11 @@ codegen(codegen_scope *s, node *tree, int val)
}
break;
case NODE_HEREDOC:
/*if(tree == NULL){printf("heredoc error 1\n");exit(11);}*/
tree = ((struct mrb_parser_heredoc_info *)tree)->doc;
/*if(tree == NULL){printf("heredoc error 2\n");exit(12);}*/
/* fall through */
case NODE_DSTR:
if (val) {
node *n = tree;