lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.analyses.c.AstVisitor< T > Interface Template Reference

Modeled after ParseTreeVisitor.class. More...

Inherited by org.lflang.analyses.c.AbstractAstVisitor< T >, and org.lflang.analyses.c.CAstVisitor< T >.

Public Member Functions

visit (CAst.AstNode tree)
 Visit an AST, and return a user-defined result of the operation.
visit (CAst.AstNode tree, List< CAst.AstNode > nodeList)
 Visit an AST with a list of other AST nodes holding some information, and return a user-defined result of the operation.

Detailed Description

Modeled after ParseTreeVisitor.class.

Member Function Documentation

◆ visit() [1/2]

Visit an AST, and return a user-defined result of the operation.

Parameters
treeThe CAst.AstNode to visit.
Returns
The result of visiting the parse tree.

Implemented in org.lflang.analyses.c.AbstractAstVisitor< T >.

◆ visit() [2/2]

T org.lflang.analyses.c.AstVisitor< T >.visit ( CAst.AstNode tree,
List< CAst.AstNode > nodeList )

Visit an AST with a list of other AST nodes holding some information, and return a user-defined result of the operation.

Parameters
treeThe CAst.AstNode to visit.
nodeListA list of CAst.AstNode passed down the recursive call.
Returns
The result of visiting the parse tree.

Implemented in org.lflang.analyses.c.AbstractAstVisitor< T >.


The documentation for this interface was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/analyses/c/AstVisitor.java