se.chalmers.cs.gf.linearize
Interface Linearizer

All Known Implementing Classes:
GFCLinearizer, LinearizeTree

public interface Linearizer

Interface implemented by all linearizers.


Method Summary
 java.lang.String getName()
          Get the name of this linearizer.
 java.util.List<Token> linearize(Tree t)
          Linearize the given abstract syntax tree to a GF value.
 java.util.List<Token> linearizeWithRanges(Tree t)
          Linearize the given abstract syntax tree to a GF value, where the input ranges for each constructor are shown in the output.
 boolean tryThisOne()
          Whether this linearizer should be used when linearizing with all available linearizers.
 

Method Detail

linearize

java.util.List<Token> linearize(Tree t)
Linearize the given abstract syntax tree to a GF value. NOTE: the tree should be annotated before calling this function.


linearizeWithRanges

java.util.List<Token> linearizeWithRanges(Tree t)
Linearize the given abstract syntax tree to a GF value, where the input ranges for each constructor are shown in the output. NOTE: the tree should be annotated before calling this function.


getName

java.lang.String getName()
Get the name of this linearizer.


tryThisOne

boolean tryThisOne()
Whether this linearizer should be used when linearizing with all available linearizers.