Object AsahiLexer.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static AsahiLexer of(String script) 根据脚本生成词法器
      final static AsahiLexer of(Collection<String> tokens) 根据已分割好的Tokens 生成词法器
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • of

         final static AsahiLexer of(String script)

        根据脚本生成词法器

        Parameters:
        script - String 脚本字符串
        Returns:

        AsahiLexer 词法器

      • of

         final static AsahiLexer of(Collection<String> tokens)

        根据已分割好的Tokens 生成词法器

        Parameters:
        tokens - Collection<String> 已分割好的Tokens
        Returns:

        AsahiLexer 词法器