Commit Graph

  • 5bccca9a43 Expose an API for customizing packToken::str() Vinícius Garcia 2017-05-14 01:55:06 -03:00
  • ae1243c291 Minor fix on Startup class instance's name Vinícius Garcia 2017-05-14 01:54:09 -03:00
  • a077e73615 Add const qualifier to some functions Vinícius Garcia 2017-05-12 21:25:31 -03:00
  • be451335d5 Fix packToken::str() function for cyclic structures #31 Vinícius Garcia 2017-05-09 08:53:25 -03:00
  • 985fe62019 Add type BOOL and related operations Vinícius Garcia 2017-05-09 08:30:41 -03:00
  • 0735805d8c Fix comments on tokType enumeration Vinícius Garcia 2017-05-01 14:35:49 -03:00
  • f4980dd940 Update README.md Vinícius Garcia 2017-05-01 13:41:36 -03:00
  • 36ef0463f6 Update README.md Vinícius Garcia 2017-04-19 14:26:32 -03:00
  • e422b1a77c Update README.md Vinícius Garcia 2017-04-19 14:17:35 -03:00
  • 5c1891558e Update README.md Vinícius Garcia 2017-04-19 14:15:38 -03:00
  • 3fe02bed64 Update README.md Vinícius Garcia 2017-04-19 14:12:11 -03:00
  • e8a4a38997 Update README.md Vinícius Garcia 2017-04-19 14:01:16 -03:00
  • a69330cf8c Update README.md Vinícius Garcia 2017-04-19 13:56:46 -03:00
  • 9944390e60 Update README.md Vinícius Garcia 2017-04-19 13:56:01 -03:00
  • c311e6ea8f Update README.md Vinícius Garcia 2017-04-19 13:52:45 -03:00
  • f791a7c411 Update README.md Vinícius Garcia 2017-04-19 13:51:07 -03:00
  • e612e0bd8c Update README.md Vinícius Garcia 2017-04-19 13:49:47 -03:00
  • f068454682 Update README.md Vinícius Garcia 2017-04-19 13:44:41 -03:00
  • 26042632dc Fix Travis and License markdown code Vinícius Garcia 2017-04-19 13:21:02 -03:00
  • ba51a05989 Fix handle_unary() behavior (bug #48) Vinícius Garcia 2017-03-10 02:07:27 -03:00
  • 3e781ad76c Refactor builtin-features.cpp into multiple files Vinícius Garcia 2017-03-10 02:06:00 -03:00
  • 96704a4872 Add some small improvements (#49) Vinícius Garcia 2017-03-09 22:36:39 -03:00
  • 5f2633abe8 Fix broken JSpy link #47 Vinícius Garcia 2017-01-17 15:35:09 -03:00
  • f49fb05f03 Op Associativity API + Minor fixes, refactors and updates (#45) Vinícius Garcia 2016-11-28 21:39:22 -02:00
  • 1336553282 A lot of refactors, some optimizations and {} and [] JSON constructors (#44) Vinícius Garcia 2016-11-23 15:54:19 -02:00
  • 46a9ccdc1c Fix bugs with sub-parsers on toRPN() function Vinícius Garcia 2016-11-08 11:04:08 -03:00
  • a412190cbe Rename builtin-operations.cpp to builtin-features.cpp (#43) Vinícius Garcia 2016-11-08 11:57:59 -02:00
  • ee5145d2c4 Expose parsing of operators to API (#42) Vinícius Garcia 2016-11-07 14:52:17 -02:00
  • 1a4049f4cb Update Travis Links Vinícius Garcia 2016-10-26 10:19:48 -03:00
  • 3fadca0495 Add a reference to our Wiki Vinícius Garcia 2016-10-26 10:07:49 -03:00
  • 2c6cee494e Update title to CParser Vinícius Garcia 2016-10-25 19:51:29 -03:00
  • 9182625ae1 Simplify operations (#38) Vinícius Garcia 2016-10-24 21:04:08 -02:00
  • b278f268f7 Merge pull request #37 from VinGarcia/fixRpnBuilder Vinícius Garcia 2016-10-18 17:26:11 -02:00
  • 2aa44db6bd Make scope available on the rpnBuilder class Vinícius Garcia 2016-10-18 16:15:13 -03:00
  • 2520d1bc2c Merge pull request #36 from VinGarcia/reservedWords Vinícius Garcia 2016-10-18 14:50:52 -02:00
  • 30e70b7ca4 Expose an API to define the parsing of reserved words Vinícius Garcia 2016-10-11 15:22:29 -03:00
  • 9bdba2aa4c Decouple operations (#30) Vinícius Garcia 2016-10-04 14:37:35 -03:00
  • 72da211394 Update README.md Brandon Amos 2016-09-19 14:54:00 -04:00
  • 743010af73 Update README.md (#29) Vinícius Garcia 2016-09-16 17:26:50 -03:00
  • 6bafe9d9c1 Improve support to Map and Tuple (#28) Vinícius Garcia 2016-09-09 09:58:08 -03:00
  • 2821109b38 Minor updates (#27) Vinícius Garcia 2016-09-01 11:53:59 -03:00
  • 87c480956d Simplify containers (#26) Vinícius Garcia 2016-09-01 10:50:41 -03:00
  • 96e8b9b23d Prototype support (#25) Vinícius Garcia 2016-08-30 16:21:29 -03:00
  • a61a241241 Almost a complete programming language core (#24) Vinícius Garcia 2016-07-30 17:57:06 -03:00
  • 95d4f344b4 Merge branch 'VinGarcia-master' Brandon Amos 2016-07-21 17:32:45 -04:00
  • c776455095 Merge. Brandon Amos 2016-07-21 17:32:18 -04:00
  • 465821fa33 Fix Travis build Vinícius Garcia 2016-07-21 14:17:00 -03:00
  • b07f4232ac Make packToken(TokenBase*) public Vinícius Garcia 2016-07-21 13:56:53 -03:00
  • 7c2b42b13c Refactor Function class so it is possible to extend it Vinícius Garcia 2016-07-21 13:44:41 -03:00
  • b7dc737dcb Fix Travis build Vinícius Garcia 2016-07-20 23:39:56 -03:00
  • 2cfdf11e32 Improve float built-in function Vinícius Garcia 2016-07-20 23:26:00 -03:00
  • 09e3d3cc8d Fix several memory leaking problems envolving RefTokens Vinícius Garcia 2016-07-20 22:06:42 -03:00
  • 9d9f021f00 Fix bug on function call operator parsing Vinícius Garcia 2016-07-20 22:00:55 -03:00
  • 9c0097d102 Add built-in functions: str(), float() and eval() Vinícius Garcia 2016-07-20 19:37:01 -03:00
  • c3bb8a1141 Simplify class packToken and make it more robust Vinícius Garcia 2016-07-20 19:21:48 -03:00
  • 2b423123ff Make class Function extensible Vinícius Garcia 2016-07-19 22:57:17 -03:00
  • d5870affdc Add optional name attribute to Function class Vinícius Garcia 2016-07-19 22:29:40 -03:00
  • 0cb9063d44 Set calculator::eval() as a constant function Vinícius Garcia 2016-07-19 15:08:04 -03:00
  • a6b315b835 Make toRPN ignore delimiters if between brackets Vinícius Garcia 2016-07-18 21:12:46 -03:00
  • e4ebe719cd Some refactoring and bug fixing (#22) Vinícius Garcia 2016-07-18 13:11:02 -03:00
  • 19516b655e Add string representations to types FUNC and TUPLE Vinícius Garcia 2016-07-18 11:55:48 -03:00
  • 92e2bd6221 Fix print() so that it will call print(None) Vinícius Garcia 2016-07-18 11:15:11 -03:00
  • 68983cd3aa Fix () operator so m.a(arg) works Vinícius Garcia 2016-07-18 10:32:26 -03:00
  • efd68e11a4 Add valgrind check (make check) to Makefile Vinícius Garcia 2016-07-17 12:19:54 -03:00
  • e48d036740 Add RAII_TokenQueue_t class to facilitate rpn management Vinícius Garcia 2016-07-17 12:08:37 -03:00
  • 58e3db71c7 Fix bug on string escaping Vinícius Garcia 2016-07-17 00:13:48 -03:00
  • 4c33d4d4c7 Update quote escaping for string literals Vinícius Garcia 2016-07-16 23:11:44 -03:00
  • 7ba11085a7 Update README.md features section Vinícius Garcia 2016-07-16 11:56:39 -03:00
  • 414ba840ce Optimize calculator::toRPN loop Vinícius Garcia 2016-07-16 03:03:52 -03:00
  • ab7be02878 Prevent bug called "static initialization order fiasco" Vinícius Garcia 2016-07-15 22:10:42 -03:00
  • 3f40e80413 Fix memory leak problem on Reference Token management Vinícius Garcia 2016-07-15 22:01:29 -03:00
  • 098770677f Make packToken::str(TokenBase*) accept const argument Vinícius Garcia 2016-07-15 17:46:58 -03:00
  • 3fb964195d Move Function::default_functions to Scope::default_global Vinícius Garcia 2016-07-15 14:51:36 -03:00
  • 61f00ecfb8 Update files to satisfy Travis CI rules Vinícius Garcia 2016-07-15 01:13:25 -03:00
  • 726182a8ec Set Function string argument to const char* Vinícius Garcia 2016-07-15 00:50:19 -03:00
  • 3c46d465e9 Minor refactor: Move calculator::scope_empty to Scope::empty Vinícius Garcia 2016-07-14 16:37:45 -03:00
  • 7b52743557 Add an arguments validation check at calculator::toRPN() Vinícius Garcia 2016-07-14 16:34:59 -03:00
  • 2ef9a77cc8 Add static calculator::str() implementation for help debug Vinícius Garcia 2016-07-14 16:31:37 -03:00
  • f58e05c559 Add support for calculator to work as a slave parser Vinícius Garcia 2016-07-13 11:18:04 -03:00
  • 71a15e524b Remove redundant calculator::compile(const char*, OppMap_t) Vinícius Garcia 2016-07-12 19:39:36 -03:00
  • c2ad59c69d Merge pull request #21 from VinGarcia/assignOP Brandon Amos 2016-07-11 09:07:52 -04:00
  • 7fc945c08f Fix style for Travis build Vinícius Garcia 2016-07-11 02:42:14 -03:00
  • 923d95e0a2 Rename some variables, fix some spellings Vinícius Garcia 2016-07-11 02:30:01 -03:00
  • 59fb48ea6c Add support for assignments on maps, e.g.: a.b = 10 Vinícius Garcia 2016-07-11 01:47:30 -03:00
  • 52c00af2b2 Fix evaluation order for operator "=" (right-to-left) Vinícius Garcia 2016-07-10 21:06:20 -03:00
  • da1d61092b Add support for assignment on existing variables Vinícius Garcia 2016-07-10 20:31:45 -03:00
  • 7b5e158983 Add asignment operator Vinícius Garcia 2016-07-08 22:18:08 -03:00
  • 32eee30029 Re-add delagated constructor and C++11. Bump Travis to gcc 4.8. Brandon Amos 2016-07-10 14:16:25 -04:00
  • 4594e3be7d Remove C++11 feature because Travis doesn't support it. Brandon Amos 2016-07-10 13:53:48 -04:00
  • acb11913f4 Formatting. Brandon Amos 2016-07-10 13:43:16 -04:00
  • f075e1f4b2 Formatting. Brandon Amos 2016-07-10 13:41:25 -04:00
  • 29d7857470 Fix struct/class inconsistencies. Brandon Amos 2016-07-10 13:41:14 -04:00
  • cb8865efb2 Bump to C++11. Add default functions to Scope() constructor. Brandon Amos 2016-07-10 13:31:12 -04:00
  • 21eb0d7f99 Add abs to resolve #2. Brandon Amos 2016-07-10 08:34:03 -04:00
  • b98844e10c Merge pull request #20 from VinGarcia/master Brandon Amos 2016-07-10 07:09:09 -04:00
  • f62d717479 Add <stdexcept> to functions.cpp Vinícius Garcia 2016-07-10 01:56:29 -03:00
  • ad5f28c5ce Fix style Vinícius Garcia 2016-07-10 01:44:23 -03:00
  • 80f29955f5 Fix style to conform with Travis suggestions Vinícius Garcia 2016-07-10 01:30:04 -03:00
  • 9ea4e26f2c Add TUPLE type and functions with multiple arguments Vinícius Garcia 2016-07-09 17:45:18 -03:00
  • 81e60ce57e Fix bug on rpnQueue.front() access Vinícius Garcia 2016-07-09 13:54:42 -03:00