-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
This is in regards to #4194 (comment). It's really confusing why I keep seeing people write drivers in the Issues sections or on StackOverflow.com that set the option to build a parse tree. It is the default.
The problem is adding this to the driver confuses what the default constructor does. Does it initialize anything? Should I set other properties in the state of the object? Should I set Profile to false? Should I set Trace to false? What about Lexer()? Should I set defaults there?
- Cpp: Uses default. https://github.com/antlr/antlr4/blob/adbe946416f5f6d794ff4c3322739c3c5c20a90c/doc/cpp-target.md
- CSharp: Setted--unnecessary.
Line 43 in adbe946
parser.BuildParseTree = true; - Dart: Setted--unnecessary.
Line 92 in adbe946
parser.buildParseTree = true; - Go: Setted--unnecessary.
Line 223 in adbe946
p.BuildParseTrees = true - Java: Uses default. https://github.com/antlr/antlr4/blob/adbe946416f5f6d794ff4c3322739c3c5c20a90c/doc/java-target.md
- JavaScript: Setted--unnecessary.
antlr4/doc/javascript-target.md
Line 103 in adbe946
parser.buildParseTrees = true; - PHP: Setted--unnecessary.
Line 87 in adbe946
$parser->setBuildParseTree(true); - Python: Uses default. https://github.com/antlr/antlr4/blob/adbe946416f5f6d794ff4c3322739c3c5c20a90c/doc/python-target.md
- Swift: Uses default. https://github.com/antlr/antlr4/blob/adbe946416f5f6d794ff4c3322739c3c5c20a90c/doc/swift-target.md
- TypeScript: Uses default. https://github.com/antlr/antlr4/blob/adbe946416f5f6d794ff4c3322739c3c5c20a90c/doc/typescript-target.md