jos
|
967e65cceb
|
Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security
|
2017-08-12 14:38:03 +02:00 |
|
Nekomajin42
|
7301b6fcf9
|
Implement toHTML() to Nodes
toHTML() method to each Node, and update in the docs
|
2017-05-21 15:47:43 +02:00 |
|
jos
|
27660d8c00
|
Some more security measures
|
2017-05-05 21:08:23 +02:00 |
|
jos
|
73b774a51b
|
Use safe map, forEach, join
|
2017-05-05 12:32:21 +02:00 |
|
jos
|
c259c936ec
|
Refactored compile into a factory function
|
2017-04-22 17:12:38 +02:00 |
|
jos
|
a7bd4cd833
|
Register _compile as separate functions
|
2017-04-22 16:49:22 +02: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
|
9173fbd3b8
|
Large refactoring of nodes: AssignmentNode. UpdateNode, AccessorNode, IndexNode
|
2016-02-25 15:02:44 +01:00 |
|
jos
|
8d3d58e724
|
Implemented ObjectNode and object support in the expression parser
|
2016-01-02 23:00:14 +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
|
2353c4a61e
|
Renamed folders util to utils
|
2015-07-18 13:22:38 +02:00 |
|
jos
|
6c7bf4acf0
|
Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...).
|
2015-05-20 21:08:26 +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
|
a347405a98
|
toString: implement callbacks and local configuration
|
2015-05-16 13:28:51 +02:00 |
|
Max Bruckner
|
291d620972
|
Pass local configuration to toTex functions
|
2015-05-16 13:27:48 +02:00 |
|
Max Bruckner
|
6235fd6ce1
|
Make toString a wrapper around _toString
This enables preparating the node tree in `toString` before generating
the actual string output with `_toString` methods
|
2015-04-30 00:12:54 +02:00 |
|
Max Bruckner
|
15eb602a8f
|
Remove workarounds from Node and ArrayNode
|
2015-04-29 12:12:46 +02:00 |
|
Max Bruckner
|
8282f424c2
|
Use the prototype for is<Node> instead of the constructor
|
2015-04-28 20:13:53 +02:00 |
|
Max Bruckner
|
250707b668
|
Convert the isNode function into a boolean property.
|
2015-04-28 09:56:01 +02:00 |
|
Max Bruckner
|
390a0060b4
|
Add is<NameOfNode> property to enable type checking across constructors
|
2015-04-28 09:14:53 +02:00 |
|
jos
|
d3d3212633
|
Refactored all nodes into factory functions (see #342)
|
2015-04-26 21:25:31 +02:00 |
|
Rogelio J. Baucells
|
0d34992080
|
Merge pull request #23 from josdejong/develop
Sync
|
2015-03-19 00:06:26 -04:00 |
|
Max Bruckner
|
e04dfd26bc
|
Rename customFuncions to callbacks
|
2015-03-17 18:30:26 +01:00 |
|
Max Bruckner
|
c9d20285e9
|
Fix breaking change ( passing type to ArrayNode.toTex )
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
35ce7f7fb4
|
Make Node.toTex a wrapper like Node.compile
Node.prototype.toTex is now a wrapper that calls the node's _toTex
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
37c1363c2d
|
Pass callbacks to toTex functions
|
2015-03-13 21:23:13 +01:00 |
|
Rogelio J. Baucells
|
b4463d9ef3
|
Initial require() changes
|
2015-03-04 13:53:32 -05:00 |
|
jos
|
309bf3938d
|
Added proper error messages to Node.map
|
2014-11-15 13:32:02 +01:00 |
|
jos
|
5669ae1365
|
Some refactoring
|
2014-11-14 11:35:13 +01:00 |
|
jos
|
a1f60db0d1
|
Created Node.map, changed traverse to use Node.map
|
2014-11-14 11:25:48 +01:00 |
|
jos
|
95a49fe156
|
Node.transform first clones the node tree
|
2014-10-11 21:59:47 +02:00 |
|
jos
|
839e596772
|
Implemented transform and traverse
|
2014-10-11 18:03:41 +02:00 |
|
jos
|
5f08307391
|
Implemented a function replace for nodes of a parsed expression.
|
2014-10-11 15:33:23 +02:00 |
|
jos
|
40986a1325
|
Using strict mode now in all files (added 'use strict'; on top of every file)
|
2014-07-18 23:19:14 +02:00 |
|
Niels Heisterkamp
|
b7fe0bfbf1
|
Added LaTeX conversion of expressions using toTex() on expression.
Also added some basic tests, which cover some use cases; but should be expanded.
|
2014-05-19 08:20:06 +02:00 |
|
jos
|
1189efd4d8
|
Added property type to all expression nodes in a node tree.
|
2014-04-24 20:26:51 +02:00 |
|
josdejong
|
8cea27406b
|
Some internal refactoring
|
2014-04-06 11:22:13 +02:00 |
|
josdejong
|
ad554ef1f7
|
Updates and fixes to work with a different BigNumber instance per math.js instance
|
2014-04-05 22:42:03 +02:00 |
|
josdejong
|
b046c7ee98
|
Completed unit tests for all expression nodes
|
2014-03-01 15:55:20 +01:00 |
|
josdejong
|
42548e1cf0
|
More unit tests
|
2014-02-28 22:50:46 +01:00 |
|
josdejong
|
30d9d4653c
|
Some more unit tests added
|
2014-02-26 21:07:22 +01:00 |
|
josdejong
|
5d96ce4c16
|
Removed old code for expression evaluation
|
2014-01-07 21:07:43 +01:00 |
|
josdejong
|
00e55b917e
|
Replaced eval with compile
|
2014-01-07 16:12:57 +01:00 |
|
josdejong
|
5f81246136
|
Implemented global definitions internally in expression compilation
|
2014-01-05 15:01:07 +01:00 |
|
josdejong
|
f6acb12e4d
|
Implemented expression compilation for 80%
|
2014-01-01 20:46:30 +01:00 |
|
josdejong
|
f2f1ae1f72
|
Renamed and flattened configuration settings
|
2013-12-07 11:39:45 +01:00 |
|
josdejong
|
3a4c1c5ef0
|
Internally renamed variable options to settings
|
2013-11-21 13:39:24 +01:00 |
|
josdejong
|
ea51c6c86c
|
math.options is no longer exposed as property
|
2013-11-21 10:37:04 +01:00 |
|
josdejong
|
98cb6dcd31
|
Bug fix for nested matrix indexes using context variable end
|
2013-11-12 22:14:12 +01:00 |
|