Package net.hydromatic.morel.ast
Class Ast
- java.lang.Object
-
- net.hydromatic.morel.ast.Ast
-
public class Ast extends java.lang.ObjectVarious sub-classes of AST nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAst.AggregateCall to an aggregate function in acomputeclause.static classAst.AnnotatedExpParse tree node of an expression annotated with a type.static classAst.AnnotatedPatPattern that is a pattern annotated with a type.static classAst.ApplyApplication of a function to its argument.static classAst.CaseCase expression.static classAst.CompositeTypeNot really a type, just a way for the parser to represent the type arguments to a type constructor.static classAst.Con0PatType constructor pattern with no argument.static classAst.ConPatType constructor pattern with an argument.static classAst.DatatypeBindParse tree node of a datatype binding.static classAst.DatatypeDeclParse tree node of a datatype declaration.static classAst.DeclBase class for declarations.static classAst.ExpBase class of expression ASTs.static classAst.FnLambda expression.static classAst.FromFrom expression.static classAst.FunBindOne of the branches (separated by 'and') in a 'fun' function declaration.static classAst.FunctionTypeFunction type.static classAst.FunDeclParse tree node of a function declaration.static classAst.FunMatchOne of the branches (separated by '|') in a 'fun' function declaration.static classAst.IdParse tree node of an identifier.static classAst.IdPatNamed pattern, the pattern analog of theAst.Idexpression.static classAst.If"If ...static classAst.InfixCallCall to an infix operator.static classAst.InfixPatPattern build from an infix operator applied to two patterns.static classAst.LetExp"Let" expression.static classAst.ListList.static classAst.ListPatList pattern, the pattern analog of theAst.Listexpression.static classAst.LiteralParse tree node of a literal (constant).static classAst.LiteralPatLiteral pattern, the pattern analog of theAst.Literalexpression.static classAst.MatchMatch.static classAst.NamedTypeParse tree for a named type (e.g.static classAst.PatBase class for a pattern.static classAst.PrefixCallCall to an prefix operator.static classAst.RecordRecord.static classAst.RecordPatRecord pattern.static classAst.RecordSelectorParse tree node of a record selector.static classAst.RecordTypeParse tree node of a record type.static classAst.TupleTuple.static classAst.TuplePatTuple pattern, the pattern analog of theAst.Tupleexpression.static classAst.TupleTypeTuple type.static classAst.TyConType constructor.static classAst.TypeBase class for parse tree nodes that represent types.static classAst.TyVarParse tree node of a type variable.static classAst.ValBindValue bind.static classAst.ValDeclParse tree node of a value declaration.static classAst.WildcardPatWildcard pattern.
-
Constructor Summary
Constructors Modifier Constructor Description privateAst()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringtoString(AstNode node)
-
-
-
Method Detail
-
toString
public static java.lang.String toString(AstNode node)
-
-