Interface KeywordRecognizer

All Known Implementing Classes:
BasicKeywordRecognizer

public interface KeywordRecognizer
Implementing class should recognize a string as a keyword or should tell that the string is not a keyword. This helps the syntax analyzers that are used for languages that have reserved words to identify the keywords on the lexical analysis level.
Author:
Peter Verhas
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isRecognized(String identifier)
    The method checks the argument if present in the reserved keyword list or not.
  • Method Details

    • isRecognized

      boolean isRecognized(String identifier)
      The method checks the argument if present in the reserved keyword list or not.
      Parameters:
      identifier - the string of the identifier that may be reserved word
      Returns:
      true if and only if the identifier string is a reserved keyword