Package com.scriptbasic.interfaces
Interface KeywordRecognizer
-
- All Known Implementing Classes:
BasicKeywordRecognizer
public interface KeywordRecognizerImplementing 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRecognized(java.lang.String identifier)The method checks the argument if present in the reserved keyword list or not.
-
-
-
Method Detail
-
isRecognized
boolean isRecognized(java.lang.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:
trueif and only if the identifier string is a reserved keyword
-
-