Package org.staccato
Class StaccatoParserPatternHelper
- java.lang.Object
-
- org.staccato.StaccatoParserPatternHelper
-
public class StaccatoParserPatternHelper extends java.lang.Object
Certain functionality of Patterns depend on being able to know what each token parses as. This class provides a bridge between Patterns and Tokens and the StaccatoParser. While the methods below could be a part of either StaccatoParser or Pattern, placing them here helps keep those two classes cleaner.- See Also:
StaccatoParser
,Pattern
,Token
-
-
Constructor Summary
Constructors Constructor Description StaccatoParserPatternHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Token>
getTokens(PatternProducer p)
Token.TokenType
getTokenType(java.lang.String tokenString)
-
-
-
Method Detail
-
getTokens
public java.util.List<Token> getTokens(PatternProducer p)
-
getTokenType
public Token.TokenType getTokenType(java.lang.String tokenString)
-
-