Skip to content

Commit

Permalink
Improve documentation of the lexer generation
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Lüpges <[email protected]>
  • Loading branch information
luepges committed Nov 27, 2024
1 parent 23f18ed commit dfcfa23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public String getOrComputeLexSymbolName(String constName) {
}

/**
* Does not
* Side effect free.
* @return the name for a lexsymbol that was used in an Antlr-File
*/
public Optional<String> getCachedLexSymbolName(String constName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ public static String createSimpleGoodName(String x) {

}

/**
* Computes a new name for the lexical production or returns the previously
* computed one.
*
* @deprecated Use {@link LexNamer#getComputedLexName(String)}
* or {@link LexNamer#getOrComputeLexName(MCGrammarSymbol, String)} instead
*/
@Deprecated
public String getLexName(MCGrammarSymbol grammarSymbol, String sym) {
return this.getOrComputeLexName(grammarSymbol, sym);
Expand Down

0 comments on commit dfcfa23

Please sign in to comment.