matiec_examples icon indicating copy to clipboard operation
matiec_examples copied to clipboard

Can I get abstract syntax tree (AST) by using matiec?

Open zeyuid opened this issue 5 years ago • 4 comments

zeyuid avatar Sep 15 '20 13:09 zeyuid

No.

But this is possible using my tool: https://github.com/jubnzv/iec-checker.

Install it according to README and use something like this:

iec_checker path/to/file.st -dump true

This will generate an AST dump in JSON format in path/to/file.st.dump.json.

jubnzv avatar Sep 15 '20 13:09 jubnzv

No.

But this is possible using my tool: https://github.com/jubnzv/iec-checker.

Install it according to README and use something like this:

iec_checker path/to/file.st -dump true

This will generate an AST dump in JSON format in path/to/file.st.dump.json.

Thanks! I saw that the IEC-checker give a test demo about .st file. Does it support the IL standard language?

zeyuid avatar Sep 21 '20 14:09 zeyuid

Does it support the IL standard language?

No, it doesn't support IL. But it will work well with ST used in matiec.

I'm not actively working on this utility right now, because I have encountered the following problem. There are a lot of non-standard extensions of IEC syntax in popular commercial IDEs (Beckhoff, CodeSyS, etc.). Without these syntax derivatives, IEC checker can't be used of lots of users. Adding the new syntax is a difficult and time-consuming job with an unknown result for me. So, I'm not interested in continuing working on it.

Feel free to reuse and extend existing source code of checker, according to it free license.

jubnzv avatar Sep 21 '20 14:09 jubnzv

Does it support the IL standard language?

No, it doesn't support IL. But it will work well with ST used in matiec.

I'm not actively working on this utility right now, because I have encountered the following problem. There are a lot of non-standard extensions of IEC syntax in popular commercial IDEs (Beckhoff, CodeSyS, etc.). Without these syntax derivatives, IEC checker can't be used of lots of users. Adding the new syntax is a difficult and time-consuming job with an unknown result for me. So, I'm not interested in continuing working on it.

Feel free to reuse and extend existing source code of checker, according to it free license.

Yes, this problem does exist. Thanks for your information!

zeyuid avatar Sep 22 '20 02:09 zeyuid