ptal / oak

A typed parser generator embedded in Rust code for Parsing Expression Grammars
Apache License 2.0
142 stars 14 forks source link

Add attribute to not englob the grammar inside a module #27

Closed ptal closed 8 years ago

ptal commented 10 years ago

It's useful if the grammar is already declared in its own module.

ptal commented 10 years ago

Not currently possible because I don't know how to access the crate or module of the defined macro. So I need a module to put the extern crate oak_runtime; inside and access the runtime oak library.

ptal commented 8 years ago

Englobing the grammar inside a module seems really reasonable. When issue #82 will be implemented it will be the encouraged way of declaring grammars so it will not, by design, be possible to declare the grammar in its module. Therefore, I will close this.