peter.murray.rust
peter.murray.rust

Reputation: 38033

Can ANTLR grammar files be modularised?

I am building ANTLR3 applications where some of the same grammar rules are likely to be used in different applications. There will be many *.g files but they may, for example, all wish to reference the same version of FLOAT. Are there "import" facilities whereby a *.g can be assembled from other *.g files and if so what are the precedence rules?

Upvotes: 2

Views: 716

Answers (1)

Bart Kiers
Bart Kiers

Reputation: 170148

You mean composite grammars?

Upvotes: 4

Related Questions