1930 Commits

Author SHA1 Message Date
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
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
Jason Turner
ce52cae45c Updated nameing of boxedcpp to dispatchkit 2009-06-13 22:03:41 +00:00
Jason Turner
4edea184de Move towards more header only implementation friendly 2009-06-13 21:55:55 +00:00
Jason Turner
1eb0964f4e Reduce problems for header only implementation be eliminating static class object 2009-06-13 20:55:47 +00:00
Jason Turner
dc0f74fd36 Reference counting working for reals now. Previously it was counting the wrong thing (but was almost good enough) 2009-06-12 05:19:58 +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
Jason Turner
9838e34a96 First take on recycling of pointers for use in reference objects. Two caveats:
1) Static member defined in header. this will have to be cleaned up as it prevents mult-file compilation.
2) Ptrs are never let go of, so data is never freed, so every object that is ever created is always created
2009-06-11 22:01:15 +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
Jonathan Turner
85a30e91fb Moving wesley to chaiscript 2009-06-11 17:39:36 +00:00
Jonathan Turner
7c935702f6 Last step of new move attempt 2009-06-11 17:38:34 +00:00
Jonathan Turner
9816f55d59 Second step of new move attempt 2009-06-11 17:38:02 +00:00
Jonathan Turner
31cf022989 First step of new move attempt 2009-06-11 17:37:27 +00:00