Commit Graph

  • 7e5b7cbd7a Switch get_function to default to not doing object lookup. Correct method eval to maintain method lambda syntax. Add unit test for method lambda Jonathan Turner 2009-08-21 20:05:05 +00:00
  • c539e0b458 Add unittest for 'use' feature Jonathan Turner 2009-08-21 18:26:34 +00:00
  • 1f011f3d5b Add "use" function for loading chai files from inside of ChaiScript and fix potential memory bug with filename const char * pointers being passed around Jason Turner 2009-08-21 03:33:57 +00:00
  • a136236179 Fix dispatch for const boost::shared_ptr<> & parameters for functions, add a test to example.cpp and fix some issues with building example.cpp Jason Turner 2009-08-20 21:35:56 +00:00
  • 8840f06053 Allow floating point numbers without a zero before the decimal point Jonathan Turner 2009-08-20 14:50:13 +00:00
  • 00e4de774f Move "fun_helper" into detail namespace Jason Turner 2009-08-09 19:12:01 +00:00
  • bc3a17b3b7 Port VC++ fix from last rev back to Linux Jason Turner 2009-08-09 18:42:32 +00:00
  • 4a57efde25 Correct bug with bootstrapping of Map type on windows. Also, make it easier to specify the type of a function being added at the time it is being added. Jason Turner 2009-08-09 16:49:14 +00:00
  • 972b395aea Tag r328 as Release 1.2 tags/release_1_2 Jason Turner 2009-08-08 21:35:18 +00:00
  • cf94817869 Add missing new files from last checkin v1.2.0 Release-1.2.0 Jason Turner 2009-08-08 16:38:32 +00:00
  • 6775863415 Clean up chaiscript namespace by adding the "detail" namespace for internal functions/classes Jason Turner 2009-08-08 16:38:04 +00:00
  • a3d4b6698a Favor filtering of functions during dispatch over exceptions to determine appropriate function to call. Results in approximately 50% reduction in runtime for long running scripts Jason Turner 2009-08-06 04:22:13 +00:00
  • 0ff107a818 Rename types_match to call_match in Proxy_Function to more closely match the semantics of the call Jason Turner 2009-08-06 01:35:12 +00:00
  • ba6b392174 Approximate 20% reduction in runtime on long running scripts, based on profiling data. Reduce number of execution of object cache culling, reduction of copies of the stack and reduction of Boxed_Value copies Jason Turner 2009-08-05 02:43:13 +00:00
  • 5b424be4ed Add error to CMakeList.txt on missing Boost. Fix if sample Jonathan Turner 2009-07-26 13:33:58 +00:00
  • 859b3633d6 Tagging of release 1.1 to r321 tags/release_1_1 Jason Turner 2009-07-25 19:10:01 +00:00
  • 669d6e9495 Cleanup comment in example.cpp v1.1.0 Release-1.1.0 Jason Turner 2009-07-25 13:48:44 +00:00
  • 9f614bba33 Update ticks in example to proper quotes Jonathan Turner 2009-07-24 13:31:15 +00:00
  • 0b789004e9 Make "clone" a chaiscript based operation instead of forcing the user to register a clone method. Jason Turner 2009-07-24 13:17:00 +00:00
  • 0d3c90a245 Add "type_name" function and port the "new" in prelude to use it instead of clone/clear. Jason Turner 2009-07-24 04:01:28 +00:00
  • 2f591a25a6 Add ltrim, rtrim, and trim Jonathan Turner 2009-07-23 17:35:39 +00:00
  • 4127a6ed41 Added 'clear'. Added 'push_back' to string. Added char. Added simple reverse Jonathan Turner 2009-07-23 17:01:07 +00:00
  • 4e412c0f6a Fix compilation error for G++ Jason Turner 2009-07-23 13:03:57 +00:00
  • 370121a9ff add example.cpp to build for VC++, fix minor bug in passing of & parameters to functor<>, move bootstrap functions into bootstrap namespace and clean up function names and add "retro" support for reversing of ranges. Jason Turner 2009-07-23 04:35:15 +00:00
  • 00ac8113c0 Add additional support for boost::shared_ptr as a return type Jason Turner 2009-07-21 02:00:39 +00:00
  • 72b6647718 Add missing return value Jonathan Turner 2009-07-20 19:53:31 +00:00
  • daacbaa9e0 Correct for warnings and errors for the VC++ port. Jason Turner 2009-07-19 03:59:58 +00:00
  • a5a1e3ee1b Revamped method for bootstrapping of types, using a new Module class that collects everything related to a type or group of types Jason Turner 2009-07-19 03:04:46 +00:00
  • 5a5b2929b0 Add additional functor example Jason Turner 2009-07-18 23:41:01 +00:00
  • 82bd46bb1a More usage cleansups Jason Turner 2009-07-18 23:34:08 +00:00
  • 4d4c26bf73 Major updates to the C++ API. Please see trunk/src/example.cpp to follow along Jason Turner 2009-07-18 18:05:54 +00:00
  • ac817ff33a Change 'elseif' to 'else if' to better support C++ expectations Jonathan Turner 2009-07-17 14:16:27 +00:00
  • 689143aba5 Fix broken push_back in prelude, to correct for unit tests. Jason Turner 2009-07-16 23:53:13 +00:00
  • 9b733b2621 Correct g++ compilation error caused by r308, fix for casting to const boost::shared_ptr<> &. Jason Turner 2009-07-16 23:46:19 +00:00
  • 727dc7b0d6 Add support for boxed_cast<> to const boost::shared_ptr<Type> &, fixing the problem Jon was having Jason Turner 2009-07-16 21:30:01 +00:00
  • 3fc5f8e8e1 Guard push_back to ensure we have the push_back_ref before we call it Jonathan Turner 2009-07-16 20:32:33 +00:00
  • aed493322b Clean up exception story so that there is only one exception type and one thing the user needs to catch Jonathan Turner 2009-07-16 13:24:15 +00:00
  • 8dbb43f45f Clean up last bug fix with full support for const & (and presumably some support for const *) contained types. Jason Turner 2009-07-15 23:36:10 +00:00
  • ec2f81c674 Fix bug that jon discovered that affects attempting to return a reference to an object that shares a memory location with a containing object but has a different type. Jason Turner 2009-07-15 23:12:49 +00:00
  • 724ffdcb20 Oops, resetting CMakeList.txt to the correct one Jonathan Turner 2009-07-15 14:41:21 +00:00
  • 7c7e437b10 Clean up unnecessary Boxed_Value copies in eval Jonathan Turner 2009-07-15 14:40:53 +00:00
  • 99690623bf Tagged rev295 as 1.0 tags/release_1_0 Jonathan Turner 2009-07-13 13:51:01 +00:00
  • 599a21d377 Small bugfix to float parser v1.0.0 Release-1.0.0 Jonathan Turner 2009-07-13 13:48:06 +00:00
  • 2d0b8e85b6 Move test files to contrib/test and added one liner to readme Jonathan Turner 2009-07-13 13:18:26 +00:00
  • 7f435985d3 Add readme file Jonathan Turner 2009-07-13 11:41:56 +00:00
  • 5ec3901396 Some minor source header touchups Jonathan Turner 2009-07-13 03:13:04 +00:00
  • 45fbe2028a Correct registration of array[]. (Rollback to previous version) to fix broken unit tests. Jason Turner 2009-07-13 03:04:47 +00:00
  • 7f71c77e56 Add documented example usage for C++ api. To be used for website documentation purposes as well Jason Turner 2009-07-12 17:05:24 +00:00
  • a70dc12b2a Documentation updates. Jason Turner 2009-07-12 03:07:45 +00:00
  • c9e67f2063 use relative include paths to make moving files around/portability easier potentially. Jason Turner 2009-07-11 13:00:43 +00:00
  • e9bd246b18 Update VC++ project for new dir layout Jason Turner 2009-07-11 12:51:23 +00:00
  • 7da81c8c11 Put eval init in constructor Jonathan Turner 2009-07-10 15:45:48 +00:00
  • 15979ecdb2 A couple touchups. Fixed package builder Jonathan Turner 2009-07-10 15:37:10 +00:00
  • 008329f36d Move dispatchkit unittest out of include Jonathan Turner 2009-07-10 15:26:35 +00:00
  • 5c79c7cec0 Move dispatchkit test out of include Jonathan Turner 2009-07-10 15:25:14 +00:00
  • ac2b59796f Moving internal includes to point to the new dir structure Jonathan Turner 2009-07-10 15:24:24 +00:00
  • 4a5c86f07f Moving files into new locations Jonathan Turner 2009-07-10 15:10:21 +00:00
  • a40c71967c Move dispatch kit into new include tree Jonathan Turner 2009-07-10 15:06:47 +00:00
  • c468044f99 Add logo Jason Turner 2009-07-10 12:55:49 +00:00
  • 06604e14b5 Cleaned up exception story Jonathan Turner 2009-07-09 22:53:09 +00:00
  • aa0f54c53f Port to visual studio + a couple of minor bug fixes. Compiles with only 2 "unreachable code" warnings on /W4 in VC++ Jason Turner 2009-07-09 22:24:11 +00:00
  • 5406d16f0b Touchup to unit test runner Jonathan Turner 2009-07-09 20:16:22 +00:00
  • 0cfbac6b23 Add unit tests runner Jonathan Turner 2009-07-09 17:27:28 +00:00
  • fb286b91ea Add unit tests for mmd and guarded mmd Jonathan Turner 2009-07-09 17:07:29 +00:00
  • 57aeacab2e Fixed up annotation printing. Added help command to eval Jonathan Turner 2009-07-09 17:02:46 +00:00
  • 0f5ff57a46 First bit of work making a package build Jonathan Turner 2009-07-09 14:51:12 +00:00
  • bf8d58163a Finished documenting chaiscript side Jonathan Turner 2009-07-09 12:26:19 +00:00
  • b8dec6c187 Add a unit test for bind Jonathan Turner 2009-07-09 03:37:57 +00:00
  • 6aaee43205 Add a couple of unit tests for insert_at and erase_at Jonathan Turner 2009-07-09 02:56:31 +00:00
  • 9c8e4dd535 Add insert_at and erase_at for vector Jason Turner 2009-07-09 02:08:16 +00:00
  • 98edfc8dba Code cleanup. Refactor chaiscript_eval to use functions instead of inline code Jonathan Turner 2009-07-08 22:01:40 +00:00
  • a0448fa558 Missing unit test answer Jonathan Turner 2009-07-08 19:03:36 +00:00
  • e7d63b1536 First set of unit tests Jonathan Turner 2009-07-08 18:59:10 +00:00
  • 3d75f17d21 First stab at annotation fixes. Still not perfect, but better Jonathan Turner 2009-07-08 15:12:26 +00:00
  • 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 Jason Turner 2009-07-08 04:22:47 +00:00
  • a8d74cea6f Add support for annotations to dispatchkit, and reflect that support in chaiscript. Jason Turner 2009-07-08 02:03:25 +00:00
  • bea05c6ea0 Added function def annotations Jonathan Turner 2009-07-07 16:16:27 +00:00
  • 8ae2e6cc8b Add rudimentary string searching based on std::string capabilities Jason Turner 2009-07-07 03:29:41 +00:00
  • 24a4d61e44 Add "empty" support to standard containers. Jason Turner 2009-07-07 02:17:37 +00:00
  • c974ab0034 Fix a bug which prevented _ from being visible in all places, enhance prelude to take an inserter algorithm for each function that generates a new list Jason Turner 2009-07-07 01:55:04 +00:00
  • 36208b401e Make the prelude string a bit more manageable Jason Turner 2009-07-07 00:21:19 +00:00
  • 2c5b1323dd Fixed a loss of error location on function calls Jonathan Turner 2009-07-06 16:27:27 +00:00
  • 0708f32694 Added bool equations to bootstrap Jonathan Turner 2009-07-06 16:11:03 +00:00
  • 7ceb3e8700 Added concat function Jonathan Turner 2009-07-06 14:54:12 +00:00
  • 26f5d25243 Bug fix to returning values inside of a loop Jonathan Turner 2009-07-06 13:01:28 +00:00
  • 494335fb09 Change default push_back behavior Jonathan Turner 2009-07-04 15:20:15 +00:00
  • e151e26d60 A minor correction to range vector generation Jonathan Turner 2009-07-04 13:40:42 +00:00
  • a76cc16922 Better ranged vector, now generated from a new prelude function Jonathan Turner 2009-07-04 13:04:55 +00:00
  • cda30f3ed7 Add range values of the form [x..y], currently internally generatored Jonathan Turner 2009-07-04 12:33:27 +00:00
  • 4afdee1c09 Add odd and even functions Jonathan Turner 2009-07-04 10:58:07 +00:00
  • 4f09d945dd Add modulus operator Jonathan Turner 2009-07-04 10:55:17 +00:00
  • b2a99d4105 Add modulus operator to parser Jonathan Turner 2009-07-04 02:17:50 +00:00
  • 310dd030ac Register string as a container type and update the prelue to guard to_string for ranges against strings. Jason Turner 2009-07-03 16:37:18 +00:00
  • 27e72d117f Add "is_type" utility function and register "function" as a registered typename Jason Turner 2009-07-03 15:41:51 +00:00
  • b191d5a2ee Fix sum and product to start with floating point instead of int Jonathan Turner 2009-07-03 15:32:58 +00:00
  • b720d85c8b Implement function assignment Jason Turner 2009-07-03 15:07:18 +00:00
  • 294d22ac5b Remove unnecessary type comparison in equation Jonathan Turner 2009-07-03 14:52:05 +00:00
  • bce2a1ffdb Remove old langkit project Jonathan Turner 2009-07-03 14:16:22 +00:00
  • b1ae26e9c1 Remove old chaioop starting project Jonathan Turner 2009-07-03 14:15:09 +00:00
  • 34983dbed2 Added take_while and drop_while Jonathan Turner 2009-07-03 14:08:58 +00:00