Documentation API of the 'org.matheclipse.core.expression.AST' Java class
AST
org.matheclipse.core.expression

Class AST

  • All Implemented Interfaces:
    AbelianGroupElem<IExpr>, Element<IExpr>, MonoidElem<IExpr>, RingElem<IExpr>, Serializable, Cloneable, Comparable<IExpr>, Iterable<IExpr>, Collection<IExpr>, List<IExpr>, RandomAccess, IAST, IExpr


    public class ASTextends HMArrayList<IExpr>implements IAST

    (A)bstract (S)yntax (T)ree of a given function.

    In Symja, an abstract syntax tree (AST), is a tree representation of the abstract syntactic structure of the Symja source code. Each node of the tree denotes a construct occurring in the source code. The syntax is \'abstract\' in the sense that it does not represent every detail that appears in the real syntax. For instance, grouping parentheses are implicit in the tree structure, and a syntactic construct such as a Sin[x] expression will be denoted by an AST with 2 nodes. One node for the header Sin and one node for the argument x.

    Internally an AST is represented as a java.util.List which contains
    • the operator of a function (i.e. the "header"-symbol: Sin, Cos, Inverse, Plus, Times,...) at index 0 and
    • the n arguments of a function in the index 1 to n
    See Abstract syntax tree.
    See Also:
    Serialized Form

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.