Package | Description |
---|---|
org.matheclipse.parser.client |
Provides the parser and scanner implementation.
|
org.matheclipse.parser.client.ast |
Provides the implementations of the abstract syntax tree classes.
|
org.matheclipse.parser.client.eval |
Predefined evaluation engines.
|
org.matheclipse.parser.client.eval.api |
Interfaces for visiting and evaluating the nodes of an abstract syntax tree.
|
org.matheclipse.parser.client.operator |
Provides the operator classes (i.e. for binary, prefix and postfix Operators).
|
Modifier and Type | Method and Description |
---|---|
ASTNode |
Parser.parse(String expression)
Parse the given
expression String into an ASTNode. |
Modifier and Type | Class and Description |
---|---|
class |
FloatNode
A node for a parsed floating number string.
|
class |
FractionNode
A node for a parsed fraction string
|
class |
FunctionNode
A list of
ASTNode 's which represents a parsed function. |
class |
IntegerNode
A node for a parsed integer string
|
class |
NumberNode
The basic node for storing a parsed number expression string
|
class |
PatternNode
A node for a parsed pattern expression (i.e. x_)
|
class |
StringNode
A node for a parsed string (i.e. delimited by double quotes)
|
class |
SymbolNode
A node for a parsed symbol string (i.e.
|
Modifier and Type | Method and Description |
---|---|
ASTNode |
IParserFactory.createDouble(String doubleString)
Create an double node from the given double value string
|
ASTNode |
FunctionNode.get(int index) |
ASTNode |
PatternNode.getConstraint() |
ASTNode |
FunctionNode.getNode(int index) |
ASTNode |
FunctionNode.remove(int index) |
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
Modifier and Type | Method and Description |
---|---|
Iterator<ASTNode> |
FunctionNode.iterator() |
ListIterator<ASTNode> |
FunctionNode.listIterator() |
ListIterator<ASTNode> |
FunctionNode.listIterator(int index) |
List<ASTNode> |
FunctionNode.subList(int fromIndex,
int toIndex)
Because GWT doesn't support the subList() method, we also throw an
UnsupportedOperationException
|
Modifier and Type | Method and Description |
---|---|
boolean |
FunctionNode.add(ASTNode e) |
void |
FunctionNode.add(int index,
ASTNode element) |
FunctionNode |
IParserFactory.createAST(ASTNode headExpr)
Creates a new function with no arguments from the given header expression .
|
FunctionNode |
IParserFactory.createFunction(SymbolNode head,
ASTNode arg0)
Creates a new function with head
head and 1 argument. |
FunctionNode |
IParserFactory.createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1)
Creates a new function with head
head and 2 arguments. |
PatternNode |
IParserFactory.createPattern(SymbolNode patternName,
ASTNode check)
Create a pattern from the given symbol node
|
ASTNode |
FunctionNode.set(int index,
ASTNode element) |
Modifier and Type | Method and Description |
---|---|
boolean |
FunctionNode.addAll(Collection<? extends ASTNode> c) |
boolean |
FunctionNode.addAll(int index,
Collection<? extends ASTNode> c) |
Constructor and Description |
---|
FunctionNode(ASTNode head) |
FunctionNode(SymbolNode head,
ASTNode arg0) |
FunctionNode(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
PatternNode(SymbolNode symbol,
ASTNode constraint) |
Modifier and Type | Class and Description |
---|---|
class |
ComplexNode |
class |
DoubleNode |
Modifier and Type | Method and Description |
---|---|
ASTNode |
DoubleEvaluator.optimizeFunction(FunctionNode functionNode)
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
ComplexEvalVisitor.optimizeFunction(FunctionNode functionNode)
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
DoubleEvaluator.parse(String expression)
Parse the given
expression String and store the resulting
ASTNode in this DoubleEvaluator |
static ASTNode |
DoubleEvaluator.parseNode(String expression)
Parse the given
expression String and return the resulting
ASTNode |
Modifier and Type | Method and Description |
---|---|
double |
DoubleEvaluator.evaluateNode(ASTNode node)
Evaluate an already parsed in abstract syntax tree node into a
double number value. |
boolean |
DoubleEvaluator.evaluateNodeLogical(ASTNode node) |
boolean |
ComplexEvalVisitor.evaluateNodeLogical(ASTNode node) |
static void |
DoubleEvaluator.getVariables(ASTNode node,
Set<String> result)
Get the variable names from the given AST node.
|
Constructor and Description |
---|
DoubleEvaluator(ASTNode node) |
Modifier and Type | Field and Description |
---|---|
protected ASTNode |
ObjectEvaluator.fNode |
Modifier and Type | Method and Description |
---|---|
ASTNode |
ObjectEvaluator.optimizeFunction(FunctionNode functionNode)
Optimize an already parsed in
functionNode into an
ASTNode . |
ASTNode |
IEvaluator.optimizeFunction(FunctionNode functionNode)
Optimize an already parsed in
functionNode into an
ASTNode . |
Modifier and Type | Method and Description |
---|---|
DATA |
ObjectEvaluator.evaluateNode(ASTNode node)
Evaluate an already parsed in abstract syntax tree node into a
DATA value. |
DATA |
IEvaluator.evaluateNode(ASTNode node)
Evaluate an already parsed in abstract syntax tree node into a
DATA value. |
DATA |
AbstractASTVisitor.evaluateNode(ASTNode node)
Evaluate an already parsed in abstract syntax tree node (ASTNode) into a
DATA value. |
DATA |
ObjectEvaluator.evaluateNode(ASTNode node,
USER_DATA_TYPE data) |
Modifier and Type | Method and Description |
---|---|
ASTNode |
ASTNodeFactory.createDouble(String doubleString) |
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
Modifier and Type | Method and Description |
---|---|
FunctionNode |
ASTNodeFactory.createAST(ASTNode headExpr)
Creates a new list with no arguments from the given header object .
|
ASTNode |
PrePlusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PreMinusOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PostfixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
PrefixOperator.createFunction(IParserFactory factory,
ASTNode argument) |
ASTNode |
SubtractOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
InfixOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
ASTNode |
DivideOperator.createFunction(IParserFactory factory,
ASTNode lhs,
ASTNode rhs) |
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0) |
FunctionNode |
ASTNodeFactory.createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1) |
PatternNode |
ASTNodeFactory.createPattern(SymbolNode patternName,
ASTNode check) |
Copyright © 2017. All rights reserved.