Hello KDE-community, As I am currently working on a project which includes GCode parsing I found out that my QEarleyParser which I implemented for my calculator PhyxCalc works very well for syntax checking. So it came to my mind that on the fly syntax checking would be a very nice feature for both kate and kdevelop. I know it is a bit late for GSoC applications but wouldn't that be great idea? The grammar used for the syntax checking is stored in simple text file, which is the biggest difference to classical Yacc and Bison parsers.
Take a look at : https://github.com/strahlex/cnc-machine in the desktop folder. It is a very simple work in progress GUI for a CNC- machine, I used the QEarleyParser for the GCode syntax checking. The grammar looks like this: S=% S=|mcodes| S=|gcodes| S=|gmove| |xyz| S= xyz=X|real| xyz=Y|real| xyz=Z|real| xyz=X|real| Y|real| xyz=X|real| Z|real| xyz=Y|real| Z|real| xyz=X|real| Y|real| Z|real| xyz=X|real| F|real| xyz=Y|real| F|real| xyz=Z|real| F|real| xyz=X|real| Y|real| F|real| xyz=X|real| Z|real| F|real| xyz=Y|real| Z|real| F|real| xyz=X|real| Y|real| Z|real|F|real| mcodes=M5 mcodes=M2 mcodes=M3 gcodes=G21 gmove=G00 gmove=G01 #Numbers uint=|n| uint=|n||uint| int=|uint| int=|+-||uint| real=|int| real=|int|.|uint| #real=.|uint| n=0 n=1 n=2 n=3 n=4 n=5 n=6 n=7 n=8 n=9 +-=+ +-=- Best Regards Alexander Rössler
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
