|
|
|
|
|
by xg15
182 days ago
|
|
Exactly - I'd see this as an example of a language that is not context-free, because generating the AST requires information beyond the root node/production and the characters of the subtree. In contrast, languages like Java, JavaScript or C# would be context-free: The string hello(foo + bar * 5);
is not a "valid" JavaScript program, because of the undefined identifiers, but it does have a non-ambiguous AST. |
|
https://stackoverflow.com/questions/898489/what-programming-...
(See also the answer by Dave with currently only the second most votes. If that is what you mean, I agree.)