Alek Mosingiewicz
efbebee9da
Throw exception when user-provided input contains BOM.
2018-05-13 10:25:04 +02:00
Jason Turner
b9a5607a56
Merge pull request #438 from RobLoach/patch-1
...
Add Switch Statement example
2018-05-12 09:41:37 -06:00
Alek Mosingiewicz
1e8f7f9fa5
Simplify BOM test.
2018-05-10 18:40:56 +02:00
Alek Mosingiewicz
1d782338c9
Cover skipping BOM with test.
2018-05-10 18:23:39 +02:00
Alek Mosingiewicz
f37d0e13d3
Skip UTF-8 BOM before parsing begins.
2018-05-10 17:44:06 +02:00
Rob Loach
5c2fd20a9e
docs: Add Switch Statement example
2018-05-09 19:18:34 -04:00
Jason Turner
c14d9dfb6e
Fix some new clang related warnings
2018-05-08 10:05:10 -06:00
Jason Turner
f695a24e1b
Fix clang warning for undefined msvc symbol check
2018-05-08 09:46:01 -06:00
Jason Turner
06191646d2
Merge pull request #418 from ChaiScript/apply_unicode_patches
...
Apply unicode patches
2018-05-08 09:08:25 -06:00
Jason Turner
9a670d79fc
Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
2018-04-01 11:07:11 -06:00
Jason Turner
a48f358555
Better error reporting on missing type info
2018-04-01 11:06:48 -06:00
Jason Turner
3bf72420c2
Merge pull request #424 from zemasoft/develop
...
Fix CHAISCRIPT_NO_THREADS macro redefinition warning
2018-03-17 12:28:15 -06:00
dinghram
d68ba51f6f
Class with type_conversion from int and "==" operator causes switch statement to compare destroyed objects
...
Fixes: Class with type_conversion from int and "==" operator causes switch statement to compare destroyed objects #421
Re-uses existing code from Binary_Operator_AST_Node::do_oper to compare equality when processing switch case statements.
2018-03-12 13:48:50 -06:00
Tomas Zeman
c2a3518eb0
Fix CHAISCRIPT_NO_THREADS macro redefinition warning
...
Appeared when compiling with MULTITHREAD_SUPPORT_ENABLED=FALSE.
2018-03-10 19:23:06 +01:00
Jason Turner
4139eb1efc
Merge pull request #423 from zemasoft/develop
...
Fix potential conversion warning on some platforms
2018-03-09 10:45:18 -07:00
Tomas Zeman
3dec2af071
Fix potential conversion warning on some platforms
2018-03-09 10:19:33 +01:00
dinghram
235af9bf33
Class with type_conversion from int and "==" operator causes switch statement to compare destroyed objects
...
I added a Function_Push_Pop to save the match_value and the value from evaluating the case statement. This makes the code look like Fold_Right_Binary_Operator_AST_Node::do_oper, which does not have the same defect behavior.
2018-03-05 11:04:59 -07:00
Stan
be5709ab5c
Add support for chained dot calls.
2018-03-04 22:49:36 +01:00
Jason Turner
258cb23dda
Further fixes for compiled tests for VS 2015
2018-03-02 15:40:22 -07:00
Jason Turner
476a752a08
Fix last merge
2018-03-02 15:09:52 -07:00
Jason Turner
2818ec67df
Merge remote-tracking branch 'origin/develop' into apply_unicode_patches
2018-03-02 15:01:41 -07:00
Jason Turner
2e9512c6b8
Adjust unicode tests for MSVC
2018-03-02 08:54:27 -07:00
Jason Turner
12797c0a03
Add C++ tests to verify strings match
...
Re #415
2018-03-02 08:01:03 -07:00
Jason Turner
1a9165f7fc
Normalize on C++'s standards for \u and \U
2018-03-02 07:45:24 -07:00
Jason Turner
1b9027a24f
Fix handling of 32 bit unicode character escapes
2018-03-01 17:03:50 -07:00
Jason Turner
81ebe1a7be
Fix the compiler warnings related to unicode parsing
...
Re #415
2018-03-01 13:40:49 -07:00
Jason Turner
1311c97c49
Fix unit tests for unicode to be consistent with how it should work
...
Addresses #415
2018-03-01 12:57:56 -07:00
Jason Turner
1acfb4f7b8
Apply patch from @chris0e3
2018-03-01 11:22:20 -07:00
Jason Turner
d5faaeca1a
Add failing unicode test from #415
2018-03-01 11:20:22 -07:00
Jason Turner
ef47b4582e
Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
2018-03-01 11:12:36 -07:00
Jason Turner
6a8541971e
Merge pull request #410 from arcoRocks/patch-3
...
Fix for #409
2018-03-01 10:44:45 -07:00
Jason Turner
9c5514f1b6
Merge pull request #414 from arcoRocks/patch-4
...
fix for #413
2018-03-01 10:42:55 -07:00
arcoRocks
33451163c4
to_json std::int64_t integer conversion
2018-02-20 16:28:23 +01:00
arcoRocks
e23c2bb04f
fix for #413
2018-02-20 16:23:45 +01:00
arcoRocks
906e5e2b6f
Update json_15.chai
2018-02-20 16:13:17 +01:00
Jason Turner
21b397c2cb
Prep for moving to Catch2 official test parsing
2018-02-19 11:34:16 -07:00
arcoRocks
3e1916a8d5
fix for #413
2018-02-19 13:31:38 +01:00
Stephen Berry
0ad4f83366
Removed constexpr for Visual Studio compilation. Xcode (LLVM) works with constexpr on the before function, but Visual Studio (2015) does not.
2018-02-15 09:10:11 -06:00
Stephen Berry
2dbfdfe111
Critical type_info ordering fix. Was using a less than comparison on pointers, which sometimes resulted in differing behavior between compilations.
2018-02-15 08:59:20 -06:00
arcoRocks
88042c7958
Fix for #409
2018-02-15 14:33:38 +01:00
Jason Turner
0391a9c715
Remove DYNLIB disabled build for linux from travis
...
This is already covered by MacOS anyhow, so
we aren't missing anything in our build coverage
2018-02-02 22:19:31 -07:00
Jason Turner
5cd9e94d4a
Third attempt to avoid ICE on travis
2018-02-02 21:54:08 -07:00
Jason Turner
55b16a8204
Enhance tests for execution contexts
...
Closes #387 references #388
2018-02-02 21:41:49 -07:00
Jason Turner
1c5c34561b
Merge pull request #388 from arcoRocks/patch-2
...
Fix for #387
2018-02-02 21:34:12 -07:00
Jason Turner
bbaa6ed76f
Merge pull request #400 from totalgee/to_json_fixes
...
In to_json(), maintain the "type" of empty maps and vectors
2018-02-02 21:33:11 -07:00
Jason Turner
e154e1e380
Move DYNLIB disabled builds to G++5
2018-02-02 21:31:19 -07:00
Jason Turner
35af4edb30
Ignore some warnings from clang++
2018-02-02 21:04:21 -07:00
Jason Turner
9be8f36824
Fix some warnings found on g++7
2018-02-02 20:36:29 -07:00
Jason Turner
6c41ac90d8
Add to_int(int) and similar overloads
...
* This is so that `to_int` `to_char` `to_long` and similar work not
only with strings but also with built-in types
2018-02-02 20:35:32 -07:00
Jason Turner
de4b497de1
Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
2018-02-02 20:22:19 -07:00