Method Summary |
|
public Node | augmentIfStatement(Node n, String matchArg, GNode no) |
public static Node | comment(Node node, String... text) Wrap the specified node in a documentation comment.
Parameters: node - The node. Parameters: text - The comment's text. |
public Node | createTypeRecordEquals() Create equals method for the record "type". |
public Node | createVariantEqualsMethod(String variantName) Create equals method for a constructor that is in equality definition.
Parameters: variantName - The name of the contructor. |
public GNode | getCheckerAST() Return the ast of the generated program. |
public static List<Integer> | getIndexList(GNode node) |
public String | getInstanceName(String name, List<String> types) |
protected String | getNodeName(Node n) |
public GNode | getSupportAST() Return the ast of the generated support file. |
public GNode | getTypesAST() Return the ast of the generated types file. |
public Node | makeCurry(String funcName, Node args, List<Node> paramTypes, Node retType, Object funcType) |
public Node | processRawTypeDefinition() Process raw_type definition to create "type" record. |
public void | processScopeSpace() Store nodes that need to process scopes. |
public void | run() Run this transformer. |
public static Node | toIdentifier(String name) Create an identifier node with the specified name.
Parameters: name - The name. |
public Node | toIfStatement(Node condition, Node action) Create a conditional statement node.
Parameters: condition - The condition node. Parameters: action - The action statement or block. |
public static Node | toLiteral(String name, String literal) Convert the specified string to a literal node.
Parameters: name - The node name. Parameters: literal - The literal as a string. |
public static Node | toModifiers(String mod) Convert the specified string to a modifier in a list of modifiers. |
public Node | visitAdditiveExpression(GNode n) Process an additive expression.
Parameters: n - The additive expression node. |
public Node | visitAsPattern(GNode n) Generate an as pattern.
Parameters: n - The as pattern node. |
public Node | visitAssertClause(GNode n) Transform an assert clause into a function call to assert.
Parameters: n - The assert clause node. |
public void | visitAttributeDefinition(GNode n) Process an attribute declaration. |
public Node | visitBooleanLiteral(GNode n) Process a boolean literal. |
public Node | visitBottom(GNode n) Process a bottom node.
Parameters: n - The bottom node. |
public Node | visitBottomPattern(GNode n) Process a bottom pattern.
Parameters: n - The bottom pattern node. |
public Node | visitConcatenationExpression(GNode n) Process a concatenation expression.
Parameters: n - The concatenation expression node. |
public Node | visitConsExpression(GNode n) Process a cons expression.
Parameters: n - The cons expression node. |
public Node | visitConsPattern(GNode n) Process a cons pattern.
Parameters: n - The cons pattern node. |
public void | visitEqualAttributeDefinition(GNode n) Process an equal attribute definition. |
public void | visitEqualityDefinition(GNode n) Process an equality definition. |
public Node | visitEqualityExpression(GNode n) Process an equality expression.
Parameters: n - The equality expression node. |
public Node | visitErrorClause(GNode n) Transform an error clause into a function call to either or warning.
Parameters: n - The expression node. |
public Node | visitFieldAssign(GNode n) Transform a field assignment.
Parameters: n - The field assignment node. |
public Node | visitFieldExpression(GNode n) Process a field expression.
Parameters: n - The field expression node. |
public Node | visitFloatingLiteral(GNode n) Process a float literal.
Parameters: n - the float literal node. |
public Node | visitFunctionApplication(GNode n) Process a function application. |
public Node | visitFunctionExpression(GNode n) |
public Node | visitGuardExpression(GNode n) Transform a guard expression. |
public Node | visitIfElseExpression(GNode n) Transform an if expression into a java conditional expression.
Parameters: n - The if expression node. |
public Node | visitIfExpression(GNode n) Transform an if expression into a java conditional expression.
Parameters: n - The if expression node. |
public Node | visitIntegerLiteral(GNode n) Process an integer literal.
Parameters: n - the integer literal node. |
public Node | visitLetExpression(GNode n) Process a let expression.
Parameters: n - The let expression node. |
public Node | visitListLiteral(GNode n) Process a List literal.
Parameters: n - The list literal node. |
public Node | visitListPattern(GNode n) Process a List pattern.
Parameters: n - The list pattern node. |
public Node | visitLogicalAndExpression(GNode n) Process a logical and expression.
Parameters: n - The logical and expression node. |
public Node | visitLogicalNegationExpression(GNode n) Process a logical negation expression.
Parameters: n - The logical negation expression node. |
public Node | visitLogicalOrExpression(GNode n) Process a logical or expression.
Parameters: n - The logical or expression node. |
public Node | visitLowerID(GNode n) Process a LowerID node. |
public Node | visitMatchExpression(GNode n) Process a match expression type.
Parameters: n - The match expression node. |
public void | visitModule(GNode n) Process the module. |
public void | visitModuleDeclaration(GNode n) Process a module declaration. |
public Node | visitMultiplicativeExpression(GNode n) Process a multiplicative expression.
Parameters: n - The multiplicative expression node. |
public void | visitNameSpaceDefinition(GNode n) Process namespace definition. |
public Node | visitPatternMatch(GNode n) Process a pattern match.
Parameters: n - The pattern match node. |
public List<Node> | visitPatternMatching(GNode n) Process a pattern matching expression.
Parameters: n - The pattern matching node. |
public Node | visitPatternParameters(GNode n) Process pattern parameters.
Parameters: n - The pattern parameters node. |
public Node | visitPatterns(GNode n) Process a Patterns node. |
public Node | visitPredicateExpression(GNode n) Transform a predicate expression.
Parameters: n - The predicate expression. |
public void | visitRecordDeclaration(GNode n) Process a record type definition. |
public Node | visitRecordExpression(GNode n) Transform a record expression. |
public Node | visitReduceExpression(GNode n) Transform a reduce expression.
Parameters: n - The predicate expression. |
public Node | visitRelationalExpression(GNode n) Process a relational expression.
Parameters: n - The relational expression node. |
public Node | visitRequireExpression(GNode n) Process require expression. |
public void | visitScopeDefinition(GNode n) |
public GNode | visitStringLiteral(GNode n) Process a string literal.
Parameters: n - The string literal node. |
public Node | visitTupleConstructor(GNode n) Create a new named tuple.
Parameters: n - The tuple constructor node. |
public Node | visitTupleLiteral(GNode n) Process a tuple literal.
Parameters: n - The tuple literal node. |
public Node | visitTuplePattern(GNode n) Process a tuple pattern.
Parameters: n - The tuple pattern node. |
public Node | visitTypeConstructorPattern(GNode n) Process a type constructor pattern.
Parameters: n - The type constructor node. |
public void | visitTypeDefinition(GNode n) Process a type definition. |
public Node | visitTypedPattern(GNode n) Transform a typed pattern.
Parameters: n - The typed pattern node. |
public Node | visitValueDefinition(GNode n) Process a value definition.
Parameters: n - The value binding node. |
public void | visitVariable(GNode n) Process a variable. |
public void | visitVariantDeclaration(GNode n) Process a variant type definition. |
public Node | visitWhenPattern(GNode n) Generate a when pattern.
Parameters: n - The when pattern node. |
public Node | visitWildCard(GNode n) Transform a wildcard.
Parameters: n - The wildcard node. |