33 Commits

Author SHA1 Message Date
Jonathan Turner
98edfc8dba Code cleanup. Refactor chaiscript_eval to use functions instead of inline code 2009-07-08 22:01:40 +00:00
Jason Turner
a8d74cea6f Add support for annotations to dispatchkit, and reflect that support in chaiscript.
Also, some documentation cleanups.
2009-07-08 02:03:25 +00:00
Jonathan Turner
2c5b1323dd Fixed a loss of error location on function calls 2009-07-06 16:27:27 +00:00
Jonathan Turner
26f5d25243 Bug fix to returning values inside of a loop 2009-07-06 13:01:28 +00:00
Jonathan Turner
a76cc16922 Better ranged vector, now generated from a new prelude function 2009-07-04 13:04:55 +00:00
Jonathan Turner
cda30f3ed7 Add range values of the form [x..y], currently internally generatored 2009-07-04 12:33:27 +00:00
Jonathan Turner
294d22ac5b Remove unnecessary type comparison in equation 2009-07-03 14:52:05 +00:00
Jonathan Turner
78be32927c Fixed repl scope leak after an exception 2009-07-03 03:13:05 +00:00
Jonathan Turner
db9442d5a8 More prelim testing to isolate repl issue 2009-07-02 22:54:50 +00:00
Jonathan Turner
af4b1a2bfb Tracking down the 'to_string in repl clobbers vars' issue, not done yet 2009-07-02 21:23:49 +00:00
Jason Turner
47052f710c Fix some semantics of operator= to reduce dispatch, etc.
Also, add more bootstrapping support for some of the built in types.
2009-07-02 19:59:40 +00:00
Jonathan Turner
6d4f2146b8 Added function guards 2009-07-02 17:22:12 +00:00
Jonathan Turner
8e732f3087 Allow more general function dispatch 2009-07-01 19:47:12 +00:00
Jonathan Turner
57c75dae31 Add && and || operator short-circuiting 2009-07-01 17:57:14 +00:00
Jonathan Turner
27f6ec7b70 Change equation to clone rhs. Add := ref equation. Failed clones will ref copy 2009-07-01 16:48:27 +00:00
Jonathan Turner
3214f427ff Added for loop 2009-07-01 13:33:29 +00:00
Jonathan Turner
bb174b37a6 Added inline map creation 2009-07-01 13:19:26 +00:00
Jonathan Turner
2cba593c53 Add prefix ++ and -- 2009-06-30 19:34:16 +00:00
Jonathan Turner
e6a0dc9af6 Fix with function definitions of zero params 2009-06-30 19:11:12 +00:00
Jonathan Turner
1bc71d21bd Move parser-specific stuff into its own class 2009-06-30 18:54:33 +00:00
Jonathan Turner
ee44ae0ca0 Initial reworking of chaiscript parser to use the new chaioop parser 2009-06-30 18:17:15 +00:00
Jonathan Turner
ae3ce3fcb2 Fix arity when registering lambdas and functions 2009-06-25 23:14:46 +00:00
Jason Turner
eb5dbe4975 Add more specific exception types to the dynamic system and handle them properly 2009-06-25 00:03:23 +00:00
Jason Turner
d02620bb1b Cleanup Cast_Helper and add new boxed_cast<>() function. 2009-06-23 02:47:47 +00:00
Jason Turner
80ed8eb505 Make EvalError a subclass of runtime_error and provide the std::exception with a robust description for easier debugging of callback/scripted function calls 2009-06-21 20:07:11 +00:00
Jason Turner
786d194689 Handle the ReturnVal exception at the eval_function level so that functions passed back to C++ land have their return values handled properly 2009-06-21 19:45:36 +00:00
Jonathan Turner
975d8c9618 Added attribute sugar for object attributes 2009-06-20 15:43:31 +00:00
Jonathan Turner
e3db4d3595 Added inline map init using ecmascript syntax 2009-06-20 14:46:05 +00:00
Jason Turner
ae67be1ecd Add chaiscript namespace 2009-06-14 02:18:13 +00:00
Jason Turner
785263628b Add namespace dispatchkit 2009-06-13 22:42:13 +00:00
Jason Turner
416242286a Add langkit namespace 2009-06-13 22:19:30 +00:00
Jonathan Turner
e1727565e6 Finish move to dispatchkit/chaiscript 2009-06-11 17:50:31 +00:00
Jonathan Turner
4c08855f64 Next step in moving wesley to chaiscript 2009-06-11 17:41:58 +00:00