Interface SymbolMatcher

All Known Implementing Classes:
JavaExtSymbolMatcher, JavaSymbolMatcher

public interface SymbolMatcher
A symbol matcher that tells the S-expression parser whether a character is part of a symbol
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSymbolChar(char ch)
    Tests whether a character is allowed to be in a symbol
    boolean
    Tests whether a character is allowed to begin a symbol
  • Method Details

    • isSymbolFirstChar

      boolean isSymbolFirstChar(char ch)
      Tests whether a character is allowed to begin a symbol
      Parameters:
      ch - The character to test
      Returns:
      True if the character is allowed at the beginning of a symbol
    • isSymbolChar

      boolean isSymbolChar(char ch)
      Tests whether a character is allowed to be in a symbol
      Parameters:
      ch - The character to test
      Returns:
      True if the character is allowed anywhere after the first character of a symbol