Commit Graph

  • 7b77af3736 Remove commented out code and make variable declarations/scopes consistent with the rest of the C++ codebase Jason Turner 2010-09-30 19:16:03 +00:00
  • 8b35434e6f rip out a couple hundred lines of code with inheritance Jason Turner 2010-09-30 18:17:32 +00:00
  • 1e867f5760 Fix broken gcc build introduced during vc2010 fixes Jason Turner 2010-09-30 16:34:27 +00:00
  • 670eb0692b Visual studio warning reduction and compile fixes for vs2010. Warning suppression on vs2005. Fixes to get cmake working with boost autolinking. Update to support boost 1.44 Jason Turner 2010-09-30 14:33:12 +00:00
  • 4b9d2d130f Add comment about clang work around Jason Turner 2010-09-20 12:57:33 +00:00
  • 30affb8855 Correct assertion that was causing clang (and any other debug build) to fail tests Jason Turner 2010-09-20 12:47:25 +00:00
  • 22c2be835a Get chaiscript compiling with LLVM/clang. Resulting code crashes, however. Jason Turner 2010-09-20 03:24:48 +00:00
  • a39d70dbca Rip out caching in dispatch kit to get a more clean view of the performance world Jason Turner 2010-09-19 23:24:52 +00:00
  • 10986c159f Add support for automatic conversion between chaiscript functions and boost::function. Might merit some look to see how much overhead this adds. Jason Turner 2010-09-13 14:24:12 +00:00
  • cfa42158af Clean up reflection a bit, and how we do pretty printing of ast nodes. Registered new internal_to_string in reflection module so that we can have automatic pretty printing of ast nodes during repl eval. Jonathan Turner 2010-08-30 13:37:50 +00:00
  • 054179ead3 Commenting out of previous node value caching scheme. This allows us to profile later, without having these smaller optimizations clutter up the flow. This also allows us to pass the reflection test. Jonathan Turner 2010-08-29 21:33:11 +00:00
  • 8a6a46d0d3 Fix to the method/array dispatch issue Jonathan Turner 2010-08-29 19:49:57 +00:00
  • efae821996 Add some unit tests for reflection and recently discovered array lookup returned from a method problem Jason Turner 2010-08-28 22:55:43 +00:00
  • 31feab6053 Fix to parsing of single-line comments where the comment at the end of a line was merging statements separated by a single line comment Jason Turner 2010-08-28 22:14:09 +00:00
  • 7ef12f634d Register AST_Node and Parser, overloaded eval for AST_Node and some const correctness fixes Jason Turner 2010-08-28 21:48:30 +00:00
  • c6452c4bd6 Rename of Token to AST_Node to be more correct Jonathan Turner 2010-08-28 18:38:01 +00:00
  • 71de169e09 Stub out the reflection module Jason Turner 2010-08-28 18:29:38 +00:00
  • 329244759f Fix warnings discovered on macos Jason Turner 2010-08-28 17:58:02 +00:00
  • c5f20ea158 A little cleanup of logical and/or since those are now separate evals. Jonathan Turner 2010-08-19 14:42:18 +00:00
  • 58c62f6333 More refactoring of parser to use the token children types directly instead of using a giant switch statement during build_match. Jonathan Turner 2010-08-15 02:04:35 +00:00
  • 7f037b26d4 Updated email addresses in copyright information. Jonathan Turner 2010-08-10 05:24:07 +00:00
  • b1e357423f Move structure to being inheritance-based in preparation for reflection infrastructure. This technique relies on the vtable's dynamic dispatch for correct evaluation, and removes the giant switch eval style of previous revisions. Jonathan Turner 2010-08-08 17:18:32 +00:00
  • 3a904d9f74 Drastically reduce the number of exceptions thrown at runtime (cannot completely eliminate them all, it's the nature of doing what we are doing with making a runtime interface to a compiled system like we are). Jason Turner 2010-08-07 19:27:15 +00:00
  • d838f7a6d4 Renaming of helper function char_between. Adding help to check for hitting the end of input. Jonathan Turner 2010-08-07 02:18:51 +00:00
  • 556e7ad916 Cleaned up the formatting a bit. Switched parser over to using charBetween, which significantly improves readability of the early parsing rules. Jonathan Turner 2010-08-06 11:17:53 +00:00
  • 21253043d1 Add option for "light" testing, which greatly reduces compile times Jason Turner 2010-08-05 13:44:23 +00:00
  • f215cae866 Add string.c_str() and string.data() methods. Jason Turner 2010-08-05 13:38:11 +00:00
  • ea93903884 Fix build problem that was causing chaiscript_no_threads to still link with boost_thread Jason Turner 2010-08-04 19:17:33 +00:00
  • f03189c168 Quiet down some irrelevant warnings in MSVC2008, make dynamic_cast conversions work in msvc across modules by applying a kludge that will probably not work long term, but does work now. This may mean that chaiscript needs to move to being a library? Jason Turner 2010-08-03 17:21:51 +00:00
  • a122403c20 Fix problem with functor<>() not casting to the proper type and add unit test for this case Jason Turner 2010-08-03 15:19:20 +00:00
  • e1fbf54e40 Make disabling of thread support a configuration time option. This mainly exists for testing purposes. Jason Turner 2010-08-03 03:09:49 +00:00
  • 2b80ca8cc5 Add missing inheritance unit test Jason Turner 2010-08-03 01:18:15 +00:00
  • f4e4f92dae Move type registration into module code, and fix problems with unloading of modules and type conversions registered inside of a module. Jason Turner 2010-08-03 01:17:38 +00:00
  • 4358564065 Make sure the same base/derived relationship is never registered more than once Jason Turner 2010-08-02 18:18:39 +00:00
  • a463ee5ff2 Clean up key used in the thread global object cache, to make sure proper type comparisons are done in the corner cases found in the main boxed_cast<> code a while back Jason Turner 2010-08-02 17:51:30 +00:00
  • cd015a8437 Thread safety for dynamic conversions / registration of new inheritance relationship Jason Turner 2010-08-02 17:01:38 +00:00
  • 8be4aa08db Reduce runtime calls into the new dynamic cast system by first making sure the type is polymorphic. Jason Turner 2010-08-02 02:30:41 +00:00
  • edee892cad Initial check in of support for upcasting during function invocation. No examples or tests are checked in yet. Some reorg was necessary to get things compiling in the right order. Is not currently thread safe and probably does not work properly across module boundaries Jason Turner 2010-08-02 01:38:25 +00:00
  • b971ee44ad Make warnings stricter on windows and clean up all legit warnings in our code. Jason Turner 2010-07-30 18:06:17 +00:00
  • b9ae4cd528 Make warnings more strict and fix one warning caught by gcc Jason Turner 2010-07-30 16:25:58 +00:00
  • 4ec21ff552 Add test of dynamic object attribute access shared between c++ and chaiscript Jason Turner 2010-07-25 19:56:19 +00:00
  • f5f99961c1 Make sure that stack is properly initialized on a per-thread basis. Fixes #95wq Jason Turner 2010-07-23 20:00:17 +00:00
  • f7086c10ec Roll back changes from last 2 checkins - user defined type conversions are going to be too slow and too hard to keep track of. Need more portable / generic approach to solving the actual problem - the ability to deal with inhertance properly Jason Turner 2010-07-23 14:55:32 +00:00
  • 3d19138c95 Minor reorg of type conversion code to support move to using it in dispatch Jason Turner 2010-07-18 01:52:07 +00:00
  • 35ac7342b6 Stub in of support for type conversions. Not yet fully implemented. Jason Turner 2010-07-17 21:49:27 +00:00
  • 3f9b5081c6 Add macro for helping with registering classes with ChaiScript, plus unit test for it Jason Turner 2010-07-17 01:01:21 +00:00
  • a1a4018136 Tag r503 as release 2.3.3 tags/release_2_3_3 Jason Turner 2010-05-15 23:05:23 +00:00
  • 799b3ef388 Update copyright for 2010 v2.3.3 Release-2.3.3 Jason Turner 2010-05-15 22:48:54 +00:00
  • fe6694297f Set version number to 2.3.3 Jason Turner 2010-05-15 22:39:28 +00:00
  • e77ec4b16a Clean up the vim syntax a bit, add escape characters and incorporate changes from bram Jason Turner 2010-04-01 19:01:18 +00:00
  • f070575205 Cleanups of vim files to get them ready for submission Jason Turner 2010-03-31 20:11:19 +00:00
  • 43d0d6199a Clean up use recognition of backtick operator functions, add support for .. range operator Jason Turner 2010-03-31 01:01:45 +00:00
  • 65c5178549 Update copyright/version info for geshi filter Jason Turner 2010-03-31 00:23:02 +00:00
  • c928e2992b Fix readline support for the eval Jason Turner 2010-03-30 18:40:55 +00:00
  • 7fef086cab Add geshi syntax highlighting (updated and cleaned up from the version that was hosted at chaiscript.com) Jason Turner 2010-03-30 16:50:18 +00:00
  • 791fd242e7 Add "throw" built in function to vim syntax highlighting Jason Turner 2010-03-30 16:38:20 +00:00
  • e81b71ccc7 Add missing README for vim highlighting Jason Turner 2010-03-30 16:21:35 +00:00
  • ef7a785214 Initial check-in of vim syntax highlighting Jason Turner 2010-03-30 16:21:06 +00:00
  • f431d479fc Add support for using cmake to build RPMs Jason Turner 2010-03-30 02:01:59 +00:00
  • e11eca406d Get cpack working for source and deb distribtions. Still need to check nsis and rpm Jason Turner 2010-03-29 15:32:20 +00:00
  • 7efb65a5c2 Move to using cmake for VisualStudio Jason Turner 2010-03-28 13:31:19 +00:00
  • 39339d769a Get the rest of the unit tests passing. Note: ChaiScript now requires CMake 2.8, which is almost a year old, so this is fair, but for the meantime we will have to either get it from backports in ubuntu or from cmake.org Jason Turner 2010-03-19 00:50:36 +00:00
  • 7ac9ea7249 Add the ability to specify "load_module" and "use" search paths. The capability is primitive and it is currently used by chaiscript_eval to set a single path from environment variables Jason Turner 2010-03-18 22:53:52 +00:00
  • 7080f5d681 Use ctest to run unit tests. run "make test" to run them. Note, anything "use"ing another file or loading a module will fail. Need to come up with some cross platform mechanism for specifying include dirs to solve this. Current thought: using environment variables "CHAI_USE_PATH" and "CHAI_MODULE_PATH" Jason Turner 2010-03-16 04:07:38 +00:00
  • 22d994009e Add missing unit_test.inc file Jason Turner 2010-03-14 14:54:00 +00:00
  • 567f911093 Move to a more standardized unit testing design which relies less on OS support and can soon be moved to a ctest implementation Jason Turner 2010-03-14 05:19:24 +00:00
  • 5c98a5d6e7 Add sync_cache to set_state code to fix logic flaw in resetting of state and memory leak. #92 Jason Turner 2010-03-09 02:09:05 +00:00
  • 856b682e72 Testing of memberscope so we can close #91 Jason Turner 2010-03-09 01:39:54 +00:00
  • faaa964565 No longer allow a local variable to be used as a function during dot notation sugar lookup. It's far less confusing this way Jason Turner 2010-01-27 03:54:42 +00:00
  • 79507c69da Tag r480 as release 2.3.2 tags/release_2_3_2 Jason Turner 2010-01-19 02:58:30 +00:00
  • d8213a4206 Convert from #warning to #pragma message for notification of thread safety being disabled, so support more compilers portably v2.3.2 Release-2.3.2 Jason Turner 2010-01-19 01:54:00 +00:00
  • 3a4421a57c Fix empty array unit test by reimplementing the node->children.size() test erroneously removed in r466 Jason Turner 2010-01-07 01:47:04 +00:00
  • 31fec2202c Add the answer to the unittest I added earlier Jonathan Turner 2010-01-06 19:42:09 +00:00
  • 13178e55e1 Add unit test that dies after r465 Jonathan Turner 2010-01-06 19:39:04 +00:00
  • 968da650b2 Clean up leaking #define's for iterations (n, m) that could mess up subsequently included files such as boost/signals2.hpp Jason Turner 2010-01-03 15:48:17 +00:00
  • fb5ba0be26 Remove std::swap implementation that was not supported for multiple file compilation. Jason Turner 2010-01-03 15:03:26 +00:00
  • 39a2c39d90 Minor fixes to example.cpp to avoid exceptions Jason Turner 2009-12-30 15:29:36 +00:00
  • 7dd629d885 Retroactively tag release 2.3.1 as r469 tags/release_2_3_1 Jason Turner 2009-12-28 19:04:46 +00:00
  • 70047424f9 Get compiling with Visual Studio 10 beta 2. Had to work around issues with conflicts between boost::function and VisualStudio's std::tr1::mem_fn (http://social.msdn.microsoft.com/Forums/en/vcprerelease/thread/e04d93ed-d686-4ef6-9939-26e34c0955eb). Also had to work around non-standard overloaded std member functions in std::map (http://msdn.microsoft.com/en-us/library/fe72hft9(VS.100).aspx) Jason Turner 2009-12-28 17:16:03 +00:00
  • 2805af1ed2 move from std::numeric_limits::min() to boost::integer_traits::const_min - avoids runtime overhead of the function call. Jason Turner 2009-12-11 15:35:59 +00:00
  • e5a29ede5f Added 0b1010 binary format. Fixed hex and octal to allow negative ints Jonathan Turner 2009-12-11 14:46:12 +00:00
  • 0c0df2c982 VS 2008 related corrections. v2.3.1 Release-2.3.1 Jason Turner 2009-12-08 15:57:31 +00:00
  • e0dad6c60d Tag r467 as release 2.3 tags/release_2_3 Jason Turner 2009-12-07 20:20:55 +00:00
  • 4457df9ff5 Fix NO_THREADS related issues v2.3.0 Release-2.3.0 Jason Turner 2009-12-06 05:12:02 +00:00
  • e601de9d18 Reduce use of Param_List_Builder by providing call_function implementations for 0,1,2 arity Jason Turner 2009-12-06 01:31:58 +00:00
  • 37b2ac2056 Implement proper swap for Boxed_Value Jason Turner 2009-12-05 19:30:09 +00:00
  • 645cdddd70 Small but measurable eval performance increase (in optimized builds) by managing the number of Boxed_Values copies and assignments Jason Turner 2009-12-05 18:54:55 +00:00
  • ac8462fb67 Fix up some broken sample files Jonathan Turner 2009-12-02 14:29:42 +00:00
  • 636c55493c Smartly size the integer returned from a Boxed_POD_Value operation to return an "int" if the resulting value is small enough Jason Turner 2009-12-01 03:52:57 +00:00
  • e2a2c14c0d Eliminate use of size_t in stl related wrappings Jason Turner 2009-12-01 02:56:02 +00:00
  • c418644a5b Fix for single-line comments stopping at semicolon. Jonathan Turner 2009-11-27 22:52:55 +00:00
  • fbf8f53e04 Add Type_Info type and add *_type objects at time of type registration. Jason Turner 2009-11-21 22:47:44 +00:00
  • a0c6366479 Added introspecition/classification of types Jason Turner 2009-11-21 06:39:35 +00:00
  • 15ffbd200a Fixed unittests broken by last checkin Jason Turner 2009-11-21 06:39:11 +00:00
  • 1c6b2725b3 Provide some hints for dispatches with lhs (first param) that is const Jason Turner 2009-11-21 06:02:17 +00:00
  • 95c124ca35 Support better tracking of loaded modules for saving and setting of state Jason Turner 2009-11-21 05:28:00 +00:00
  • 1bd73884b2 Add documentation to the set_state get_state functions Jason Turner 2009-11-18 05:05:40 +00:00
  • d3e4af433e Add support for saving/restoring of chaiscript engine state. Jason Turner 2009-11-18 04:43:08 +00:00
  • 9f65303370 Handle case of const & return values (should probably be investigated a bit more) Jason Turner 2009-11-18 04:42:43 +00:00
  • d6587ae79e Tag r450 as release 2.2 tags/release_2_2 Jason Turner 2009-11-15 15:07:06 +00:00