Class InfixParser
-
- All Implemented Interfaces:
public abstract class InfixParserInfixParser
语言层面的中缀解释器
负责从词法器中截取应该由中缀解释器解释的Token段
并交给对应类型的中缀解释器解释,并返回最终结果
-
-
Constructor Summary
Constructors Constructor Description InfixParser()Create empty Infix parser
-
Method Summary
Modifier and Type Method Description abstract HashSet<String>getIgnores()忽略的token,当词法器读到的token在其中时则停止中缀解释器的解释 final Quester<Object>parseInfix(AsahiLexer lexer, Quester<?> getter)编译(parse)中缀动作 final static InfixParserget()-
-
Method Detail
-
getIgnores
abstract HashSet<String> getIgnores()
忽略的token,当词法器读到的token在其中时则停止中缀解释器的解释
-
parseInfix
final Quester<Object> parseInfix(AsahiLexer lexer, Quester<?> getter)
编译(parse)中缀动作
- Parameters:
lexer- 词法器getter- 对象获取者- Returns:
中缀解释器解释后的对象获取者
-
get
final static InfixParser get()
-
-
-
-