Make reflection API part of stdlib

removes the reflection module completely. Reflection and the
ability to catch eval errors is too useful.
This commit is contained in:
Jason Turner
2014-08-27 12:05:03 -06:00
parent 6a3f19d575
commit a6e3fd5b42
9 changed files with 109 additions and 140 deletions

View File

@@ -1,4 +1,3 @@
load_module("reflection")
def deep()
{

View File

@@ -1,4 +1,3 @@
load_module("reflection")
var parser := ChaiScript_Parser()
var parse_success = parser.parse("3 + 4", "INPUT")
var a := parser.ast()

View File

@@ -1,4 +1,3 @@
load_module("reflection")
def deep()
{

View File

@@ -1,4 +1,3 @@
load_module("reflection")
try {
eval("def `+`(x, y) \n { \n print(i); \n } \n \n var i = 10; \n \"1\" + 1;\n")

View File

@@ -1,4 +1,3 @@
load_module("reflection")
auto& parser = ChaiScript_Parser()
auto parse_success = parser.parse("3 + 4", "INPUT")
auto& a = parser.ast()