68f9920e88
Update typeSpecificFunctions.inc
...
Added .contains(...) method for lists and maps
2025-06-09 23:51:53 +03:00
Vinícius Garcia
63ea45f819
Remove old travis CI yml file
2025-06-09 10:18:24 -03:00
Vinícius Garcia
6d18f60bb2
Update CI badge to reflect the new CI status
2025-06-09 10:15:01 -03:00
Vinícius Garcia
91374f8ea5
Merge pull request #107 from cparse/try-to-add-linters-to-ci
...
Try to add CppCheck to CI
2025-06-09 10:10:10 -03:00
Vinícius Garcia
99b4555e61
Fix some complaints from the linter
2025-06-09 10:08:14 -03:00
Vinícius Garcia
50eda83e37
Add cpplink to make lint recipe
2025-06-09 10:07:55 -03:00
Vinícius Garcia
e43bd372f5
Try to add cpplint
2025-06-09 09:28:11 -03:00
Vinícius Garcia
13efd9985d
Try to run cppcheck without an action
2025-06-09 09:23:07 -03:00
Vinícius Garcia
ee81737e69
Try to add CppCheck to CI
2025-06-08 23:19:09 -03:00
Vinícius Garcia
03e2b7f5b5
Try to add GH Actions CI workflow
...
This is necessary because the old TravisCI is no longer working
2025-06-08 23:08:47 -03:00
Vinícius Garcia
1f85d973c0
Small improvement on Pan-lj changes
2025-06-08 23:03:19 -03:00
Vinícius Garcia
421e239a11
Merge pull request #106 from pan-lj/fix_segment_fault
...
fix segment fault when multi-threading
2025-06-08 22:50:54 -03:00
longjiang.pan
06bb52a520
fix segment fault when multi-threading
2025-04-27 17:09:12 +08:00
Vinícius Garcia
2b249bb2b4
Merge pull request #105 from pirDOL/master
...
fix missing namespace in README.md examples
2024-10-04 17:12:53 -03:00
TOGO Li
7e6d2983e6
fix missing namespace in README.md examples and add space after include in functions.h
2023-08-11 06:43:56 +00:00
TOGO Li
e5a2252883
fix missing namespace in README.md examples and add space after include in functions.h
2023-08-11 06:39:17 +00:00
Vinícius Garcia
70b9b30f88
Merge pull request #102 from ennorehling/msvc_warnings
...
Fix MSVC warnings
2022-11-18 11:52:40 -03:00
Enno Rehling
808d12a608
fix clang compilation
2022-11-14 05:53:34 +01:00
Enno Rehling
d8fba93052
missing include
2022-11-13 21:16:50 +01:00
Enno Rehling
2702455fd1
add warning for signed/unsigned comparison.
...
fix broken negative indexing flagged by tests.
2022-11-13 16:50:16 +01:00
Enno Rehling
a29e7acc1d
avoid MSVC warnings
2022-11-13 16:33:07 +01:00
Enno Rehling
7bdddb67b0
fix cpplint complaints
2022-11-13 15:33:39 +01:00
Enno Rehling
3960ebd037
add a test for the unary operator syntax error
2022-11-13 15:22:54 +01:00
Enno Rehling
f74f2ff544
normalize operator when used in error message
2022-11-13 15:08:56 +01:00
Vinícius Garcia
d4e1383590
Update the list of built-in operators on README
2022-11-06 10:01:32 -03:00
Vinícius Garcia
29e3c60f3f
Merge pull request #98 from bignmllc/master
...
Operator & | ^ added and updated to C++20 precedence
2022-11-06 09:56:59 -03:00
Vinícius Garcia
9be584cc19
Add tests to confirm new operators are working
2022-11-06 09:54:58 -03:00
tom_straub
f0dd1cdccd
Operator & | ^ added and updated to C++20 precedence
2022-10-31 16:10:08 -03:00
Vinícius Garcia
6223621aee
Merge pull request #94 from peacalm/dev
...
Add function get_variables for class calculator
2022-05-10 08:55:00 -03:00
Vinícius Garcia
42959ec138
Minor improvement on README file
2022-05-10 08:49:42 -03:00
Shuangquan Li
cee18c3306
Update test-shunting-yard.cpp
...
Co-authored-by: Vinícius Garcia <vingarcia00@gmail.com >
2022-05-09 13:48:21 +08:00
Shuangquan Li
5000e536ad
Update shunting-yard.cpp
...
Co-authored-by: Vinícius Garcia <vingarcia00@gmail.com >
2022-05-09 13:40:21 +08:00
lishuangquan
35e909b293
Add function get_variables for class calculator
...
Change-Id: I50e1ebb70d6e1437eda8d72e412cfa73f7e020ba
2022-05-07 21:08:46 +08:00
Vinícius Garcia
2c126401e1
Fix warning about an unnecessary copy
2022-03-21 14:39:45 -03:00
powof2
9ed697f1ce
To fix Warning c4099: type name first seen using 'class' now seen using 'struct' ( #93 )
...
* Update containers.h
* Update shunting-yard.h
2022-03-21 14:36:28 -03:00
Vinícius Garcia
e223a129e1
Make ld -O1 option conditional to Linux builds ( #87 )
...
This was changed because this options is not recognized on macOS
and possibly Windows too.
2021-12-04 11:46:43 -03:00
Vinícius Garcia
11ff91ca0c
Add unary not operation to builtin operations
2021-10-04 09:11:57 -03:00
Vinícius Garcia
5ddfd90779
Update README.md
2021-05-05 14:29:02 -03:00
Vinícius Garcia
a93f0165f3
Adding a instruction on how to run tests as suggested on #83
2021-05-05 14:28:16 -03:00
Vinícius Garcia
9576265e14
Fix bug reported on issue #83
2021-05-05 13:21:03 -03:00
Vinícius Garcia
2bb8ada027
Fix linter complaints
2021-04-26 19:10:22 -03:00
dimxy
a4ea8b5f8c
cparse namespace added ( #82 )
2021-04-26 18:38:05 -03:00
Vinícius Garcia
aed8ce0be3
Throws an error if we are missing an operator between two tokens
2021-04-25 09:58:45 -03:00
Vinícius Garcia
5080c4990b
Add support for octal and hex notations
2021-04-24 12:55:15 -03:00
Vinícius Garcia
42cb2944ba
Fix linter complaints
2020-11-02 16:27:31 -03:00
Vinícius Garcia
fd28805c18
Fix compilation warnings
2020-11-02 16:01:42 -03:00
Vinícius Garcia
a32511d632
Update README.md
2020-08-14 11:29:26 -03:00
Zipo Chen
73b1279969
Add cppfunction for lambda function ( #73 )
...
* Add cppfunction for lambda function
* Add default constructor for CppFunction
* Add polymorphic function
2020-07-03 12:18:25 -03:00
Vinícius Garcia
85673cee67
Update README.md
2019-05-14 12:27:04 -03:00
Ebrahim Ahmed
1294a74c0b
Lack of proper forwarding was causing packToken(const packToken&) to … ( #68 )
...
* Lack of proper forwarding was causing packToken(const packToken&) to be called instead of packToken(packToken&&), given this, the destructor of the local pass in arguments was also not being called, causing the cloned packTokens to be definitely lost
valgrind:memcheck 387,960 bytes in 16,165 blocks are definitely lost in loss record 261 of 267
valgrind:memcheck at 0x4C2A203: operator new(unsigned long) (vg_replace_malloc.c:334)
valgrind:memcheck by 0x1D7FD5A: Token<double>::clone() const (shunting-yard.h:71)
valgrind:memcheck by 0x1D67CB9: RefToken::RefToken(packToken, TokenBase*, packToken) (shunting-yard.h:285)
valgrind:memcheck by 0x1D623FA: ec::InterpreterImpl::process(std::queue<TokenBase*, std::deque<TokenBase*, std::allocator<TokenBase*> > > const&, TokenMap, Config_t const&) (interpreter.cpp:597)
valgrind:memcheck by 0x1D62CB8: ec::InterpreterImpl::eval(TokenMap, bool) const (interpreter.cpp:645)
valgrind:memcheck by 0x1D5E953: ec::ExpStatement::_exec(TokenMap) const (interpreter.cpp:17)
valgrind:memcheck by 0x1D68E1D: ec::Statement::exec(TokenMap) const (interpreter.h:101)
valgrind:memcheck by 0x1D5F2BB: ec::BlockStatement::_exec(TokenMap) const (interpreter.cpp:116)
valgrind:memcheck by 0x1D68E1D: ec::Statement::exec(TokenMap) const (interpreter.h:101)
valgrind:memcheck by 0x27DB10E: ec::el::Interpreter::exec(TokenMap&) (interpreter.h:385)
valgrind:memcheck by 0x27CCFCA: ec::UniverseDescriptor::render_universe(ec::ReferenceData const&) (trading_core.cpp:638)
valgrind:memcheck by 0x27BF284: ec::tests::test_universe_product_selection::test_service_test_trading_strategy_reactor_02_07_21::execute_test() (test_trading_strategy_reactor_02_07.cpp:165)
* missed a little more forwarding
* >>> fixed again
* Fix TravisCI Build
* Remove extra function from PR
2019-05-05 17:28:39 -03:00