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
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
f4b794100e
Replaced tabs with spaces
2016-03-03 20:29:08 +01:00
jos
1dd3a0e492
Expression parser now allows assignments inside objects, indexes, and function arguments
2016-03-03 19:25: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
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
jos
fad5d8cc07
Merged parseFunctions and parseIndex into parseAccessors. Restricted support for implicit multiplication, execute as accessors instead
2016-01-09 21:11:29 +01:00
jos
b7bd078def
Added name property to UpdateNode
2016-01-08 22:27:19 +01:00
jos
1a1461cf89
Assignments in the expression parser now return the assigned value rather than the created or updated object (see #533 )
2016-01-08 21:47:09 +01:00
jos
15b640fcea
Merge branch 'develop' into feature/objectsupport
...
Conflicts:
HISTORY.md
2016-01-08 20:33:22 +01:00
jos
04d933a474
Added some (skipped) tests
2016-01-05 20:42:35 +01:00
Max Bruckner
49e3fb7fad
ConditionalNode: simplify LaTeX by using the 'cases' environment
2016-01-05 10:53:11 +01:00
Max Bruckner
a75abeb58e
ObjectNode: prettier LaTeX output
2016-01-05 00:36:47 +01:00
jos
5ee4b81c62
Implemented dot notation for object properties
2016-01-03 14:56:29 +01:00
jos
8d3d58e724
Implemented ObjectNode and object support in the expression parser
2016-01-02 23:00:14 +01:00
jos
050573f4f3
Some refactoring
2016-01-02 20:46:12 +01:00
jos
476b75b33b
Fixed a bug in the toString method of an IndexNode
2016-01-02 15:56:50 +01:00
jos
2adf01e548
Getting/setting object properties working (still needs a refactoring step)
2016-01-02 15:16:12 +01:00
jos
2ef1a96094
Fixed broken unit test
2015-12-05 11:57:28 +01:00
jos
9ffab397b6
Fixed #485 : Scoping issue with variables both used globally as well as in a function definition
2015-11-28 21:20:25 +01:00
jos
d9f237d29b
Added support in the expression parser for mathematical alphanumeric symbols (see #265 )
2015-09-25 20:47:38 +02:00
jos
0dfc8d1d3e
Fixed inconsistent parsing of implicit multiplication (see #322 )
2015-09-13 21:40:14 +02:00
jos
efcd0cc1fe
Fixed #463 : inconsistent handling of implicit multiplication
2015-09-13 21:13:35 +02:00
jos
33370bfe73
Fied #265 : added support for unicode characters in the expression parser: greek letters and latin letters with accents
2015-08-10 21:04:49 +02:00
jos
f19cfb4394
Reintroduced node.eval(scope). Updated some docs and examples
2015-07-18 10:21:48 +02:00
jos
936386c96c
Fixed #405 : Parser throws error when defining a function in a multiline expression
2015-07-11 20:21:49 +02:00
Max Bruckner
1983516c2f
Tests for new templates
2015-06-07 19:26:31 +02:00
Max Bruckner
a598204fa7
Change template Syntax to ES6 like style
...
Access properties via ${property} and ${property[index]}
2015-06-07 18:49:58 +02:00
Max Bruckner
b3e8aae10c
LaTeX templates for attached toTex properties
2015-06-07 18:47:50 +02:00
Max Bruckner
2b11b14632
Enable attaching toTex callbacks to functions
2015-06-07 18:41:25 +02:00
jos
a92b978036
Merged develop into v2
2015-06-07 15:57:41 +02:00
jos
c810981238
Method Node.compile() no longer needs math to be passed as argument.
2015-05-27 13:30:35 +02:00
Rogelio J. Baucells
9b6a9c2298
Range.forEach() and map() API changes
...
Range.forEach() and map() API change to match Matrix
2015-05-21 13:17:17 -04:00
Rogelio J. Baucells
f2a179aa31
Merge branch 'josdejong/v2' into v2-Index
...
Conflicts:
lib/core/typed.js
lib/type/index/prototype/Index.js
2015-05-21 00:38:58 -04:00
Rogelio J. Baucells
7579412f7d
Index dimension with immutable matrix
2015-05-20 17:41:03 -04:00
Max Bruckner
5b160767c1
operators.js: Pass parenthesis option directly
2015-05-16 13:31:57 +02:00
Max Bruckner
3f217cefdd
toTex: no global configuration. Only pass around one local object
2015-05-16 13:30:25 +02:00
Max Bruckner
c0e1b2d268
toString: no global configuration. Only pass around one local object
2015-05-16 13:29:55 +02:00
Max Bruckner
8d3b3bbe35
Tests for custom toString
2015-05-16 13:29:20 +02:00
Max Bruckner
291d620972
Pass local configuration to toTex functions
2015-05-16 13:27:48 +02:00
Max Bruckner
e383c1c2ce
Throw errors when trying to toTex/toString a Node interface
2015-05-16 13:21:39 +02:00
rjbaucells
799ccc9463
set from parser
2015-05-13 22:45:28 -04:00