News for hackers. Stuff that matters.
Re:Nitra, JetBrains’ research project for language tooling, ... by citizenmatt on Tuesday May 27, 2014 @08:33AM (#7804116)
You can consider an extensible grammar as a "nested" grammar. You have certain extension points in the "parent" and you can attach a new grammar here.

For example, it would be easy to take a C# grammar and add a new operator, such as the null propagator "?.", since the list of operators is extensible. This wouldn't break anything, as it's just a new token for a binary expression.

Or, you could add something bigger, such as LINQ, by extending C# 2.0's Expression syntax rule with a LINQ query expression.

There are no comments on this comment yet.