417 Commits

Author SHA1 Message Date
jos
4306200c4c Implemented method Node.equals(other) for all nodes of the expression parser 2016-11-05 16:27:23 +01:00
jos
2b95c65a30 Released v3.6.0 2016-10-21 20:10:11 +02:00
jos
064eb31381 Fixed #715: Parser now exposes test functions like isAlpha which can be replaced in order to adjust the allowed characters in variables names 2016-10-21 16:33:38 +02:00
jos
80c55add2a Parser not throwing an error for invalid implicit multiplications like -2 2 and 2^3 4 2016-10-21 15:23:20 +02:00
Jos de Jong
cd12316ec8 Merge pull request #679 from woylie/master
add pickMultipleRandom function
2016-10-19 21:39:05 +02:00
jos
84755ca968 Cleaned up unused imports 2016-10-02 14:37:52 +02:00
jos
d6ce2cd332 Released v3.5.3 2016-09-21 21:25:36 +02:00
jos
7742b36c5c Some more fixes regarding numbers ending with a decimal mark (like 2.). See #711. 2016-09-20 21:35:19 +02:00
jos
9199ae58ae Fixed #711: parser accepts numbers ending with a decimal mark again like 2.. 2016-09-20 21:02:28 +02:00
jos
92918ed9b2 Fixed #707: The expression parser no longer accepts numbers ending with a dot like 2. 2016-09-07 21:10:20 +02:00
jos
23d1786cb2 Comments of expressions are are now stored in the parsed nodes, see #690 2016-08-23 21:12:39 +02:00
jos
ba2f3e5cb4 Updated history, added docs for expression parser 2016-07-25 22:49:24 +02:00
Mathias Polligkeit
fe972bacf6 extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom 2016-07-16 17:55:38 +02:00
jos
4162108fb4 Added expression parser docs for isNaN 2016-07-05 20:22:56 +02:00
Mathias Polligkeit
c5e40b40ef add pickMultipleRandom function 2016-06-30 02:19:09 +02:00
jos
730a10749e FunctionAssignmentNode creates a TypedFunction 2016-05-22 14:25:48 +02:00
jos
b016385fe0 Fixed #665: functions map, forEach, and filter now invoke callbacks which are a typed-function with the correct number of arguments 2016-05-18 22:10:34 +02:00
jos
5edecb56c8 Removed the check on the number of arguments from functions defined in the expression parser (see #665) 2016-05-18 21:08:40 +02:00
jos
66716819a7 Fixed #644: implemented method Parser.getAll() to retrieve all defined variables 2016-04-16 09:55:48 +02:00
jos
cb4a1a98cb Fixed #641: Bug in expression parser parsing implicit multiplication with wrong precedence in specific cases 2016-04-16 09:43:24 +02:00
jos
508e39ca2c Only allow operator in to be parsed as unit 2016-04-03 14:09:46 +02:00
jos
5b682d6040 Fixed #625: Unit in (inch) not always working due to ambiguity with
the operator `a in b` (alias of `a to b`)
2016-04-03 14:06:43 +02:00
jos
8b39e1b336 Fixed #629: expression parser throws an error when passing a number with decimal exponent instead of parsing them as implicit multiplication 2016-04-03 12:46:58 +02:00
jos
26e1e26555 Fixed #635: Node.toString options where not passed to function arguments 2016-04-03 11:31:08 +02:00
jos
924a8e480f Fixed #632: problem with escaped backslashes at the end of strings 2016-04-03 11:17:06 +02:00
jos
77736f554b Fixed #621: a bug in parsing implicit multiplications like (2)(3)+4 2016-03-22 20:23:07 +01:00
jos
784c0f2b1b Updated history, one update for implicit multiplication 2016-03-19 20:25:50 +01:00
jos
d9e7ced69c Merge remote-tracking branch 'origin/develop' into develop 2016-03-19 20:22:38 +01:00
jos
c8d41fc5b4 Restored support for implicit multiplications like (2+3)(4+5) 2016-03-19 20:16:54 +01:00
Max Bruckner
c72071dfb7 OperatorNode: toTex support for implicit multiplication
Use the option `implicit` with the value `hide` to not show the
multiplication sign for implicit multiplication. This is the default.
Use `show` otherwise.
2016-03-19 19:09:14 +01:00
Max Bruckner
65817dbf03 OperatorNode: toString support for implicit multiplication
Use the option `implicit` with the value `hide` to not show the
multiplication sign for implicit multiplication. This is the default.
Use `show` otherwise.
2016-03-19 18:48:54 +01:00
Max Bruckner
876740e123 fix: ParenthesisNode doesn't print parentheses with empty options
When the options to toString or toTex where an empty object,
ParenthesisNode didn't fall back to the default 'keep' behavior.
2016-03-19 18:38:58 +01:00
Max Bruckner
6f39ec5da9 OperatorNode: new 'implicit' attribute to mark implicit multiplication
This also modifies the parser to set this attribute
2016-03-19 14:25:58 +01:00
jos
aaa153d9e9 Some minor fixes in the docs 2016-03-19 13:15:01 +01:00
jos
e84af96cf4 Fixed #609: error in the example code for function parse 2016-03-19 09:42:02 +01:00
jos
1089cd4d2a Fixed #597: restored support for implicit multiplication like 2(3+4) 2016-03-12 13:30:47 +01:00
jos
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
be3fe35063 Fixed some categories in docs. Added expression docs for config and typed 2016-03-03 19:26:29 +01:00
jos
1dd3a0e492 Expression parser now allows assignments inside objects, indexes, and function arguments 2016-03-03 19:25:42 +01:00
jos
41949b2253 Fixed IndexError not always providing a max property 2016-02-29 20:41:52 +01:00
jos
f8064b2f61 Fixed broken urls in docs/index.js 2016-02-27 20:44:01 +01:00
jos
4d3988fa91 Reorganized expression docs a bit 2016-02-27 20:41:59 +01:00
jos
12eee9e856 Moved filter, forEach, map, partitionSelect, sort from utils to matrix section 2016-02-27 20:00:42 +01:00
jos
a60a70e6b9 Store dot notation in IndexNode 2016-02-27 11:36:47 +01:00
jos
89e1238fed Implemented read-only name-properties for AccessorNode and AssignmentNode, improved the name property of FunctionNode 2016-02-27 11:17:34 +01:00
jos
dc1e800314 Updated docs and history on expression parser nodes 2016-02-26 21:03:04 +01:00
jos
2869c37af9 Renamed Index.ranges to Index.dimensions 2016-02-26 20:51:09 +01:00
jos
0d6e7521d3 More unit tests 2016-02-26 20:15:52 +01:00
jos
4d1cd06285 Implemented new AssignmentNode and everything around it. Changed matrices not to clone elements when getting/setting a subset 2016-02-26 15:30:17 +01:00
jos
9173fbd3b8 Large refactoring of nodes: AssignmentNode. UpdateNode, AccessorNode, IndexNode 2016-02-25 15:02:44 +01:00