1646 Commits

Author SHA1 Message Date
Jonathan Turner
85f9d049eb Huge speed boost by getting rid of unnecessary match setup and teardown. 2009-06-29 13:23:12 +00:00
Jonathan Turner
88e0d15efd Fun call parsing fixed, but parsing waaaaay slower 2009-06-27 20:59:43 +00:00
Jonathan Turner
cb1706242e Not quite there, but we're definitely improving with the parser. Once I work out how I want expression parsing working we'll be close 2009-06-27 20:09:27 +00:00
Jason Turner
8d42015334 Add retry to dispatch mechanism in case of guard failure 2009-06-27 14:00:22 +00:00
Jason Turner
9b8fcef612 Add stub (may be complete) guard implementation 2009-06-27 13:55:45 +00:00
Jason Turner
ee9c71de4c Add support for seeing if a dispatch exists 2009-06-26 15:28:11 +00:00
Jonathan Turner
b806ff20cc Fixed up start/finish parser commands to carry more of the previous state 2009-06-26 14:21:44 +00:00
Jonathan Turner
e3588496c4 Next step in the parser, using something similar to push down automata 2009-06-26 13:43:25 +00:00
Jason Turner
f8593a0927 Add type_match function to see if two types are the same 2009-06-26 13:37:00 +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
Jonathan Turner
96f3033a42 Moved to using a prelude header 2009-06-25 14:16:32 +00:00
Jonathan Turner
18985b6a97 Added puts and join 2009-06-25 02:45:28 +00:00
Jason Turner
12f7c222e1 Return matching named functions when a get_object query finds no matching name object 2009-06-25 00:50:18 +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
Jonathan Turner
d8b5847ff6 Fix for Issue 38: array push_back 2009-06-24 16:19:25 +00:00
Jonathan Turner
3ed5fe0c97 Added ws skipping. Non ws skipping versions of base parsers. Added comment skipping 2009-06-24 13:53:05 +00:00
Jonathan Turner
1abe806178 Added a few more rules trying to get a feeling for how this will play out 2009-06-24 03:36:11 +00:00
Jonathan Turner
f4efd62e65 Adding my oop parser test to svn. Looks promising so far, but still very young 2009-06-23 23:41:57 +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
a5ecd3ceb0 Begin changing to better casting types 2009-06-23 01:21:21 +00:00
Jonathan Turner
68da0eb404 Added map and reduce functions 2009-06-22 11:51:56 +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
Jason Turner
dc11237af9 Add build_functor algorithm for constructing a boost function_object from a script snippet 2009-06-21 18:09:00 +00:00
Jason Turner
d4ec79607f Clean up syntax for build_function_caller to allow for further use of it better 2009-06-21 17:20:26 +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
0a7d7958ab Add boot strapping of string parsing for pod types 2009-06-20 20:26:47 +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
Jonathan Turner
855e5acd2b Fixed strings with escaped characters. Added for_each to prelude 2009-06-20 18:43:25 +00:00
Jason Turner
75465ca585 Add comparison operators to strings 2009-06-20 18:09:26 +00:00
Jason Turner
c7c6f215b0 Remove debugging statements for duplicate function entries 2009-06-20 17:23:23 +00:00
Jonathan Turner
682c572eea Allow function and method calls as lhs of equations 2009-06-20 16:12:10 +00:00
Jason Turner
3d23bb68f6 Add support for std::pair 2009-06-20 16:02:22 +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
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
4172cf6263 Add the ability to make type safe calls into scripted functions 2009-06-18 16:08:09 +00:00
Jason Turner
6894a59e87 Further reduction of redundant code by merging 0 param case for constructors in 2009-06-18 01:37:13 +00:00
Jason Turner
febc3753be Further support for std::map 2009-06-17 03:02:00 +00:00
Jason Turner
4bb66255ef Forbid adding of two functions with the exact same signature 2009-06-17 02:17:27 +00:00
Jason Turner
e231cb4cf7 Better implementation of variadic templates with no longer needing a special 0 template version 2009-06-17 01:10:41 +00:00
Jason Turner
146bdf8ea1 Initial support for maps 2009-06-17 00:47:46 +00:00
Jason Turner
a952bcd066 Initial support for container ranges. Still half baked, but works. 2009-06-14 16:55:09 +00:00
Jason Turner
ca20bf7eb5 Add support for registering of member data fields of structs 2009-06-14 05:43:38 +00:00
Jason Turner
8cb8bd7082 eliminate redundant definitions of common operators 2009-06-14 03:58:49 +00:00
Jason Turner
d94a107c41 Clean up and make boxed_value more portable, but not casting pointers to ints 2009-06-14 03:13:35 +00:00