Пример #1
0
def symbol_reference_followed_by_superfluous_string_on_same_line(
    symbol_name: str = 'STRING_MATCHER_SYMBOL_NAME', ) -> StringMatcherAbsStx:
    return CustomStringMatcherAbsStx(
        TokenSequence.concat([
            symbol_tok_seq.SymbolReferenceAsEitherPlainNameOrReferenceSyntax(
                symbol_name),
            TokenSequence.singleton('superfluous')
        ]))
Пример #2
0
 def tokenization(self) -> TokenSequence:
     return symbol_tok_seq.SymbolReferenceAsEitherPlainNameOrReferenceSyntax(
         self.symbol_name)