jc211 / Siemens-SCL-Antlr-Grammar

The ANTLR grammar file for the Siemens SCL language used in PLCs
6 stars 3 forks source link

Hello, friend #1

Open MRFengC opened 3 years ago

MRFengC commented 3 years ago

Can this be used to process ST language

jc211 commented 3 years ago

This was used to process SCL files in the Siemens S7. I don't know what you mean by ST language.

MRFengC commented 3 years ago

Sorry, I didn't make myself clear. This link is information for the ST language.

https://www.plcacademy.com/structured-text-tutorial/#what-is

jc211 commented 3 years ago

Then yes, this grammar is designed for the ST language in your link. Although bear in mind I wrote this 5 years ago so you may need to add whatever syntax was introduced between then and now. For the most part, I was able to use this grammar to analyze the structure of any code base written in ST.

MRFengC commented 3 years ago

Then yes, this grammar is designed for the ST language in your link. Although bear in mind I wrote this 5 years ago so you may need to add whatever syntax was introduced between then and now. For the most part, I was able to use this grammar to analyze the structure of any code base written in ST.

Thank you very much. This is really good

alcolmbini commented 2 years ago

Hello jc211. Did you use ANTLR4 with python3? Im trying to use you grammar file, but im not sure how. Do you have any other example in another language?

Thank's in advance for your help