NOP0 / rustmatic

PLC programming in Rust!
Apache License 2.0
35 stars 2 forks source link

Start working on a Structured Text parser #8

Closed Michael-F-Bryan closed 4 years ago

Michael-F-Bryan commented 4 years ago

I thought I'd try to write a Structured Text parser using pest, seeing as I always use lalrpop for this sort of thing (see Michael-F-Bryan/iec).

The general plan is to write a rustmatic-structured-text crate which will just read a Structured Text program into memory. Then we may have a rustmatic-iec crate which takes in the various forms of IEC 61131-3 and turns it into something more compiler-friendly (think MIR).

NOP0 commented 4 years ago

I went through it and it looks good :+1: I'll have to read up a bit on the pest part, but it seems really nice.