Nothing
cd vm; ./compile_vm.sh; cd ..
./compile.sh
./myparser sample_code/code1.slr
./compile_cpp.sh
cd <LibsailrDev_Project_Directory>/sailr/
make build
This happens when assingning and LHS type is different from RHS type.
Add unitary minus operator support.
if ( carname =~ re/(^Merc)/ ) { country = "Germany" ; type = rexp_matched(1) }
else if( carname =~ re/(^Cadillac|^Ford)/ ) { country = "USA" ; type = rexp_matched(1); }
else if( carname =~ re/(^Honda|^Toyota)/ ) { country = "Japan" ; type = rexp_matched(1); }
else { carname = "other country" }
libsailr interface for adding string onto ptr_table is changed.
Current rules when using libsair
Fix parsing of if_stmt
Excerpted from the output of "git diff HEAD"
// Main change in lex.l
-<INITIAL,IFSTATE,ELSESTATE>else
+<INITIAL,IFSTATE,ELSESTATE>[\t \n]*else[\t \n]*
// Main change in parse.y
-if_stmt : KEY_IF condition then_stmts opt_termin opt_else
+if_stmt : KEY_IF condition then_stmts opt_else
if(condition){then_statement} TERMIN
next_normal_statment
# e.g.
# Suppose age variable already exists on ptr_table as PTR_INT
# The following code did not work, because age on stack is still PP_INT
age2 = age
struct script_loc
(defined in script_loc.h) holds script location information.struct TreeNode_
(i.e. TreeNode) and struct _vm_inst
(i.e. vm_inst) now have location field, struct script loc
.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.