Structured text compiler.

Hi Group,

I am planning to write a structured text (PLC programming language) compiler as my Masters Project. I would greatly appreciate some comments, thoughts and advice on how realistic my goal is. Also, links to any websites that shed light on this issue would be great!

Thanks much.

BS.

Reply to
BS
Loading thread data ...

Check out mat.sf.net. It features an open-source soft PLC that has a compiler for some of IEC 61131-3 languages. Maybe you would like to improve / enhance that rather than beginning from scratch.

Andrey

Reply to
Andrey Romanenko

It really depends on how ambitious you are, what your training is and what you're trying to achieve. Most computor science programs require their undergrads to take a compilers class that includes writing a simple compiler, so it can be done. I'm _not_ sure that writing a compiler is really relavent, unless the language that you're proposing has some unique feature, and even then it may be better to work that feature into an existing language, either with a preprocessor or by modifying an existing compiler, as suggested by the other post.

Reply to
Tim Wescott

PLC Open

formatting link
has some documentation. They used to have a file that listed the grammar for several 1131 languages including ST.

I had started a project using Visual Parse by Sandstone to write a compiler, but it is unfinished at this point. As described, their grammar had some ambiguities that requires the parser use a symbol table to determine what production should be used.

If you can't find the document let me know and I'll look for it on my c-drive.

Tom

Reply to
Tom Morrison

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.