Class InfixParser

  • All Implemented Interfaces:

    
    public abstract class InfixParser
    
                        

    InfixParser

    语言层面的中缀解释器

    负责从词法器中截取应该由中缀解释器解释的Token段

    并交给对应类型的中缀解释器解释,并返回最终结果

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      InfixParser() Create empty Infix parser
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract HashSet<String> getIgnores() 忽略的token,当词法器读到的token在其中时则停止中缀解释器的解释
      final Quester<Object> parseInfix(AsahiLexer lexer, Quester<?> getter) 编译(parse)中缀动作
      final static InfixParser get()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InfixParser

        InfixParser()
        Create empty Infix parser