89 Commits

Author SHA1 Message Date
Jason Turner
ac0688a8d7 Fix warnings in memory_leak_test 2011-03-14 12:07:08 -06:00
Jason Turner
0b97fcb4df Add better namespaces to make documentation easier to handle 2011-03-05 22:50:38 -07:00
Jason Turner
912379d58c Fix some compile warnings 2010-11-09 21:06:50 +00:00
Jason Turner
906140ec78 Find and fix bug in handling of bound function types_infos and arity.
Remote outdated samples. Move working samples into samples folder and make part of build process. Make building of samples optional.
Closing #107
2010-11-08 05:22:15 +00:00
Jonathan Turner
ac8462fb67 Fix up some broken sample files 2009-12-02 14:29:42 +00:00
Jonathan Turner
5b424be4ed Add error to CMakeList.txt on missing Boost. Fix if sample 2009-07-26 13:33:58 +00:00
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
90aa53bdc6 dump_system() looks nice now, lots of little updates. Annotations are displayed as well, but they do not work for the prelude, I don't know why. Any attempt to add them invalidates the function definition in question. sensors.chai does work, however 2009-07-08 04:22:47 +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
042df442a1 Fixes to for loops. Added elseif and else 2009-07-01 17:13:52 +00:00
Jason Turner
714e1c0cec Support cleaner usage of bind, by adding a built in _ variable 2009-06-29 23:00:29 +00:00
Jonathan Turner
ae3ce3fcb2 Fix arity when registering lambdas and functions 2009-06-25 23:14:46 +00:00
Jason Turner
46859b1918 Add support for function binding and cut down on some includes 2009-06-25 22:34:00 +00:00
Jason Turner
32edcf170d Clean up some of the function callback and functor code, for easier registration, etc. 2009-06-23 03:01:56 +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
75431a052b Added short form lambda: (x) : { x + 10 }. Fixed eval sample 2009-06-21 00:35:45 +00:00
Jason Turner
9f13858482 further the sensors example to load and parse files 2009-06-20 23:24:06 +00:00
Jason Turner
1919d88f4f Prelim sensor callback implementation, should probably be moved out of the chaiscript dir at some point 2009-06-20 19:04:39 +00:00
Jason Turner
3d23bb68f6 Add support for std::pair 2009-06-20 16:02:22 +00:00
Jason Turner
d2d768e12c Remove gratuitous to_string 2009-06-20 14:24:18 +00:00
Jason Turner
9a8af16ffb add capability for passing functions back to C++ from script land, plus an example usage. 2009-06-18 18:36:43 +00:00
Jason Turner
a952bcd066 Initial support for container ranges. Still half baked, but works. 2009-06-14 16:55:09 +00:00
Jonathan Turner
7e46064bdc Renaming of samples from .wes to .chai 2009-06-12 01:29:11 +00:00
Jason Turner
b96059cba8 Memory management with freeing when applicable 2009-06-12 00:01:54 +00:00
Jonathan Turner
6b60a5b12c Added initial support for proper function scoping rules 2009-06-11 13:17:31 +00:00
Jonathan Turner
c20502cc81 Corrected identifiers. Corrected lambda example. 2009-06-11 02:17:31 +00:00
Jonathan Turner
d0ff0dc0f1 Added lambdas. Rolled back print bootstrapping for test. Need to figure out right story for polymorphic print at some point. 2009-06-11 02:16:03 +00:00
Jonathan Turner
53c3e2ee25 Added break and return statements. Fixed inner block parsing 2009-06-09 13:16:11 +00:00
Jason Turner
88708aaf7b Build smarter operators for POD types 2009-06-09 03:12:59 +00:00
Jonathan Turner
71af6162a1 Added eval 2009-06-08 16:58:12 +00:00
Jonathan Turner
23c1908917 Added prefix increment and decrement. Debugging: off 2009-06-08 15:49:44 +00:00
Jonathan Turner
50f60304f0 Allow shorter form for loop with missing first param 2009-06-08 15:30:02 +00:00
Jonathan Turner
5752ef0667 Added prelim for loop support 2009-06-08 15:12:33 +00:00
Jason Turner
db6fe9134f Fix some bootstrapping of types and add more type support 2009-06-08 04:41:13 +00:00
Jason Turner
2fa615974c Add generic vector support and example code for working with 2009-06-07 15:54:07 +00:00
Jonathan Turner
cb2d221201 Commented out superfluous debug 2009-06-07 01:34:29 +00:00
Jonathan Turner
9ca43e6290 Added wesley samples 2009-06-06 16:35:37 +00:00