MLstate / opalang

The Opa Language for Web Application Development
http://opalang.org
Other
1.24k stars 125 forks source link

I would like to get a complete formal grammar of Opa #171

Closed Shiroy closed 9 years ago

Shiroy commented 9 years ago

I have the project to write a tool similar to Doxygen for Opa. I've seen that a tool called opadoc already exist but I cannot find it.

My project is to create a tool which analyse the source code and read comments annotations to generate html pages, in a first time.

For that I need a complete formal grammar of Opa. I don't know if such a document exists. I've seen a partial formal grammar in the wiki but is not enough to parse common Opa project.

If you have it, could you send me this document ?

Regards

HenriChataing commented 9 years ago

Hi, I am not sure whether we have a formal description of the syntax or not (I am not part of the original Opa developer team), but you can try using the compiler's syntax file: opa_parser.trx.

hbbio commented 9 years ago

Also, the following work might be of interest for you:

https://github.com/facebook/pfff/tree/master/lang_opa

Shiroy commented 9 years ago

Oh yes ! It's exactly what I need :)

leftys commented 8 years ago

Hello @Shiroy! I was thinking about generating doc for opa too. Did you have any results with your effort?

Shiroy commented 8 years ago

Hello @leftys . No, I didn't persist in this way because of a lack of time due to my study and my internship.