Commit Graph

  • f35c2908d7 Change old reduce to foldl. Add clojure reduce. Add sum, product. Add take, drop, filter Jonathan Turner 2009-07-03 13:09:39 +00:00
  • 9c7f63e8b2 Fixed prefix operator precedence bug. Added collate(?), zip_with, and zip Jonathan Turner 2009-07-03 12:13:29 +00:00
  • ca8337a41d Fix clone of functions Jason Turner 2009-07-03 05:47:53 +00:00
  • 78be32927c Fixed repl scope leak after an exception Jonathan Turner 2009-07-03 03:13:05 +00:00
  • db9442d5a8 More prelim testing to isolate repl issue Jonathan Turner 2009-07-02 22:54:50 +00:00
  • af4b1a2bfb Tracking down the 'to_string in repl clobbers vars' issue, not done yet Jonathan Turner 2009-07-02 21:23:49 +00:00
  • 47052f710c Fix some semantics of operator= to reduce dispatch, etc. Jason Turner 2009-07-02 19:59:40 +00:00
  • a70af22eaf Add initial pair printing Jonathan Turner 2009-07-02 19:26:25 +00:00
  • 441112648e General cleanup to chaiscript prelude Jonathan Turner 2009-07-02 18:09:02 +00:00
  • 6ddef8f918 Changed to using to_string as dispatch instead of print and puts Jonathan Turner 2009-07-02 17:45:58 +00:00
  • 60b814f687 Added print and puts for ranged values Jonathan Turner 2009-07-02 17:39:53 +00:00
  • 6d4f2146b8 Added function guards Jonathan Turner 2009-07-02 17:22:12 +00:00
  • f6342ef2a8 Remove stale && and || registration Jonathan Turner 2009-07-01 20:02:01 +00:00
  • 5d9794470e Remove stale && and || registration Jonathan Turner 2009-07-01 19:57:31 +00:00
  • 8e732f3087 Allow more general function dispatch Jonathan Turner 2009-07-01 19:47:12 +00:00
  • 57c75dae31 Add && and || operator short-circuiting Jonathan Turner 2009-07-01 17:57:14 +00:00
  • feb4cc0d14 Fix eval() function Jonathan Turner 2009-07-01 17:45:48 +00:00
  • 042df442a1 Fixes to for loops. Added elseif and else Jonathan Turner 2009-07-01 17:13:52 +00:00
  • 27f6ec7b70 Change equation to clone rhs. Add := ref equation. Failed clones will ref copy Jonathan Turner 2009-07-01 16:48:27 +00:00
  • 5f96b39c08 Allow bash script header Jonathan Turner 2009-07-01 13:41:15 +00:00
  • 3214f427ff Added for loop Jonathan Turner 2009-07-01 13:33:29 +00:00
  • bb174b37a6 Added inline map creation Jonathan Turner 2009-07-01 13:19:26 +00:00
  • 2cba593c53 Add prefix ++ and -- Jonathan Turner 2009-06-30 19:34:16 +00:00
  • e6a0dc9af6 Fix with function definitions of zero params Jonathan Turner 2009-06-30 19:11:12 +00:00
  • 1bc71d21bd Move parser-specific stuff into its own class Jonathan Turner 2009-06-30 18:54:33 +00:00
  • ee44ae0ca0 Initial reworking of chaiscript parser to use the new chaioop parser Jonathan Turner 2009-06-30 18:17:15 +00:00
  • 2f27dc55fc Add substr parse prevention. Add while, def, and if Jonathan Turner 2009-06-30 13:37:47 +00:00
  • e4242cccd9 Add id literals Jonathan Turner 2009-06-30 10:56:00 +00:00
  • 714e1c0cec Support cleaner usage of bind, by adding a built in _ variable Jason Turner 2009-06-29 23:00:29 +00:00
  • b3fa6405c5 Added lambda parsing Jonathan Turner 2009-06-29 21:15:54 +00:00
  • df76546917 Oops, adding missing header Jonathan Turner 2009-06-29 18:38:01 +00:00
  • aa1d245d9c Add floating point parsing Jonathan Turner 2009-06-29 18:37:44 +00:00
  • 05e87b7691 Added var decl, quoted strings, and singly-quoted char strings Jonathan Turner 2009-06-29 16:33:34 +00:00
  • 8e3bad32d6 Added dot notation and proper C identifiers Jonathan Turner 2009-06-29 15:45:15 +00:00
  • 519eab12c3 Added deep function and array access Jonathan Turner 2009-06-29 15:28:45 +00:00
  • 85f9d049eb Huge speed boost by getting rid of unnecessary match setup and teardown. Jonathan Turner 2009-06-29 13:23:12 +00:00
  • 88e0d15efd Fun call parsing fixed, but parsing waaaaay slower Jonathan Turner 2009-06-27 20:59:43 +00:00
  • 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 Jonathan Turner 2009-06-27 20:09:27 +00:00
  • 8d42015334 Add retry to dispatch mechanism in case of guard failure Jason Turner 2009-06-27 14:00:22 +00:00
  • 9b8fcef612 Add stub (may be complete) guard implementation Jason Turner 2009-06-27 13:55:45 +00:00
  • ee9c71de4c Add support for seeing if a dispatch exists Jason Turner 2009-06-26 15:28:11 +00:00
  • b806ff20cc Fixed up start/finish parser commands to carry more of the previous state Jonathan Turner 2009-06-26 14:21:44 +00:00
  • e3588496c4 Next step in the parser, using something similar to push down automata Jonathan Turner 2009-06-26 13:43:25 +00:00
  • f8593a0927 Add type_match function to see if two types are the same Jason Turner 2009-06-26 13:37:00 +00:00
  • ae3ce3fcb2 Fix arity when registering lambdas and functions Jonathan Turner 2009-06-25 23:14:46 +00:00
  • 46859b1918 Add support for function binding and cut down on some includes Jason Turner 2009-06-25 22:34:00 +00:00
  • 96f3033a42 Moved to using a prelude header Jonathan Turner 2009-06-25 14:16:32 +00:00
  • 18985b6a97 Added puts and join Jonathan Turner 2009-06-25 02:45:28 +00:00
  • 12f7c222e1 Return matching named functions when a get_object query finds no matching name object Jason Turner 2009-06-25 00:50:18 +00:00
  • eb5dbe4975 Add more specific exception types to the dynamic system and handle them properly Jason Turner 2009-06-25 00:03:23 +00:00
  • d8b5847ff6 Fix for Issue 38: array push_back Jonathan Turner 2009-06-24 16:19:25 +00:00
  • 3ed5fe0c97 Added ws skipping. Non ws skipping versions of base parsers. Added comment skipping Jonathan Turner 2009-06-24 13:53:05 +00:00
  • 1abe806178 Added a few more rules trying to get a feeling for how this will play out Jonathan Turner 2009-06-24 03:36:11 +00:00
  • f4efd62e65 Adding my oop parser test to svn. Looks promising so far, but still very young Jonathan Turner 2009-06-23 23:41:57 +00:00
  • 32edcf170d Clean up some of the function callback and functor code, for easier registration, etc. Jason Turner 2009-06-23 03:01:56 +00:00
  • d02620bb1b Cleanup Cast_Helper and add new boxed_cast<>() function. Jason Turner 2009-06-23 02:47:47 +00:00
  • a5ecd3ceb0 Begin changing to better casting types Jason Turner 2009-06-23 01:21:21 +00:00
  • 68da0eb404 Added map and reduce functions Jonathan Turner 2009-06-22 11:51:56 +00:00
  • 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 Jason Turner 2009-06-21 20:07:11 +00:00
  • 786d194689 Handle the ReturnVal exception at the eval_function level so that functions passed back to C++ land have their return values handled properly Jason Turner 2009-06-21 19:45:36 +00:00
  • dc11237af9 Add build_functor algorithm for constructing a boost function_object from a script snippet Jason Turner 2009-06-21 18:09:00 +00:00
  • d4ec79607f Clean up syntax for build_function_caller to allow for further use of it better Jason Turner 2009-06-21 17:20:26 +00:00
  • 75431a052b Added short form lambda: (x) : { x + 10 }. Fixed eval sample Jonathan Turner 2009-06-21 00:35:45 +00:00
  • 9f13858482 further the sensors example to load and parse files Jason Turner 2009-06-20 23:24:06 +00:00
  • 0a7d7958ab Add boot strapping of string parsing for pod types Jason Turner 2009-06-20 20:26:47 +00:00
  • 1919d88f4f Prelim sensor callback implementation, should probably be moved out of the chaiscript dir at some point Jason Turner 2009-06-20 19:04:39 +00:00
  • 855e5acd2b Fixed strings with escaped characters. Added for_each to prelude Jonathan Turner 2009-06-20 18:43:25 +00:00
  • 75465ca585 Add comparison operators to strings Jason Turner 2009-06-20 18:09:26 +00:00
  • c7c6f215b0 Remove debugging statements for duplicate function entries Jason Turner 2009-06-20 17:23:23 +00:00
  • 682c572eea Allow function and method calls as lhs of equations Jonathan Turner 2009-06-20 16:12:10 +00:00
  • 3d23bb68f6 Add support for std::pair Jason Turner 2009-06-20 16:02:22 +00:00
  • 975d8c9618 Added attribute sugar for object attributes Jonathan Turner 2009-06-20 15:43:31 +00:00
  • e3db4d3595 Added inline map init using ecmascript syntax Jonathan Turner 2009-06-20 14:46:05 +00:00
  • d2d768e12c Remove gratuitous to_string Jason Turner 2009-06-20 14:24:18 +00:00
  • 9a8af16ffb add capability for passing functions back to C++ from script land, plus an example usage. Jason Turner 2009-06-18 18:36:43 +00:00
  • 4172cf6263 Add the ability to make type safe calls into scripted functions Jason Turner 2009-06-18 16:08:09 +00:00
  • 6894a59e87 Further reduction of redundant code by merging 0 param case for constructors in Jason Turner 2009-06-18 01:37:13 +00:00
  • febc3753be Further support for std::map Jason Turner 2009-06-17 03:02:00 +00:00
  • 4bb66255ef Forbid adding of two functions with the exact same signature Jason Turner 2009-06-17 02:17:27 +00:00
  • e231cb4cf7 Better implementation of variadic templates with no longer needing a special 0 template version Jason Turner 2009-06-17 01:10:41 +00:00
  • 146bdf8ea1 Initial support for maps Jason Turner 2009-06-17 00:47:46 +00:00
  • a952bcd066 Initial support for container ranges. Still half baked, but works. Jason Turner 2009-06-14 16:55:09 +00:00
  • ca20bf7eb5 Add support for registering of member data fields of structs Jason Turner 2009-06-14 05:43:38 +00:00
  • 8cb8bd7082 eliminate redundant definitions of common operators Jason Turner 2009-06-14 03:58:49 +00:00
  • d94a107c41 Clean up and make boxed_value more portable, but not casting pointers to ints Jason Turner 2009-06-14 03:13:35 +00:00
  • ae67be1ecd Add chaiscript namespace Jason Turner 2009-06-14 02:18:13 +00:00
  • 785263628b Add namespace dispatchkit Jason Turner 2009-06-13 22:42:13 +00:00
  • 416242286a Add langkit namespace Jason Turner 2009-06-13 22:19:30 +00:00
  • ce52cae45c Updated nameing of boxedcpp to dispatchkit Jason Turner 2009-06-13 22:03:41 +00:00
  • 4edea184de Move towards more header only implementation friendly Jason Turner 2009-06-13 21:55:55 +00:00
  • 1eb0964f4e Reduce problems for header only implementation be eliminating static class object Jason Turner 2009-06-13 20:55:47 +00:00
  • dc0f74fd36 Reference counting working for reals now. Previously it was counting the wrong thing (but was almost good enough) Jason Turner 2009-06-12 05:19:58 +00:00
  • 7e46064bdc Renaming of samples from .wes to .chai Jonathan Turner 2009-06-12 01:29:11 +00:00
  • b96059cba8 Memory management with freeing when applicable Jason Turner 2009-06-12 00:01:54 +00:00
  • 9838e34a96 First take on recycling of pointers for use in reference objects. Two caveats: Jason Turner 2009-06-11 22:01:15 +00:00
  • e1727565e6 Finish move to dispatchkit/chaiscript Jonathan Turner 2009-06-11 17:50:31 +00:00
  • 4c08855f64 Next step in moving wesley to chaiscript Jonathan Turner 2009-06-11 17:41:58 +00:00
  • 85a30e91fb Moving wesley to chaiscript Jonathan Turner 2009-06-11 17:39:36 +00:00
  • 7c935702f6 Last step of new move attempt Jonathan Turner 2009-06-11 17:38:34 +00:00
  • 9816f55d59 Second step of new move attempt Jonathan Turner 2009-06-11 17:38:02 +00:00