Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/antlr/antlr4
/ parseGrammarFromString
Method
parseGrammarFromString
tool/src/org/antlr/v4/Tool.java:644–646 ·
view source on GitHub ↗
(String grammar)
Source
from the content-addressed store, hash-verified
642
}
643
644
public
GrammarRootAST parseGrammarFromString(String grammar) {
645
return
parse(
"<string>"
,
new
ANTLRStringStream(grammar));
646
}
647
648
public
GrammarRootAST parse(String fileName, CharStream in) {
649
try {
Callers
1
testParserRuleRefInLexerRule
Method · 0.95
Calls
1
parse
Method · 0.95
Tested by
1
testParserRuleRefInLexerRule
Method · 0.76