antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
9.99k stars 3.68k forks source link

can this repository add the grammar for the ABB Robot Language #1526

Closed heroinxj closed 3 years ago

heroinxj commented 4 years ago

hello,I find the grammar for the KUKA robot language in this repository and I need generate the AST of ABB Robot language,so I wish this repository can add the RAPID(ABB robot use) language grammer.THANKS!

teverett commented 4 years ago

https://en.wikipedia.org/wiki/RAPID

heroinxj commented 4 years ago

https://en.wikipedia.org/wiki/RAPID

so what do you mean

loonydev commented 4 years ago

It's just link for somebody who want to add this language.

MSE1188 commented 3 years ago

abbParser.zip

Hello I attached ABB Parser files, which I recently started to make. They are derived from the kuka grammar https://github.com/antlr/grammars-v4/tree/master/kuka and are still in progress.

In the current state you are able to parse variable declarations and assignments from ABB RAPID language files.

I am pretty new in ANTLR so sorry, if the grammar is not perfect. Maybe someone can expand the grammar and make a branch and pull request from it.

heroinxj commented 3 years ago

abbParser.zip

Hello I attached ABB Parser files, which I recently started to make. They are derived from the kuka grammar https://github.com/antlr/grammars-v4/tree/master/kuka and are still in progress.

In the current state you are able to parse variable declarations and assignments from ABB RAPID language files.

I am pretty new in ANTLR so sorry, if the grammar is not perfect. Maybe someone can expand the grammar and make a branch and pull request from it.

Hello, I would like to know if you have any new progress in ABB grammar file recently, thanks.

KvanTTT commented 3 years ago

@MSE1188 could you please make a pull request with your grammar to this repository?

MSE1188 commented 3 years ago

@heroinxj I did not made any progress so far, as I can work with the current ones for my purposes. I will let you know, when I add more.

@KvanTTT It seems, that I do not have permission to push branches into this repository, so I am not able to make a PR here.

KvanTTT commented 3 years ago

In the beginning, you should make a fork of this repository. You can do everything with your fork. After that, you should make pull request from your fork to this repository.

heroinxj commented 3 years ago

@MSE1188 Thanks for you help。

MSE1188 commented 3 years ago

@KvanTTT Thanks, I didn't know about this fork-thing. I made a pull request in my own fork now. Not quite sure how the testing is done here. I added a short readme and example file next to the parser files.