Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Bluescreen2001 on March 12, 2017, 06:08:45 pm

Title: Has anyone written a lexer for ARM gcc assembler
Post by: Bluescreen2001 on March 12, 2017, 06:08:45 pm
The assembler files used by arm gcc use a C-like syntax (comments, number format, even some preprocessor stuff). So I tried to build a lexer based upon the C lexer (type 3). But I failed. It does not detect my CPU instructions because the "casesensitive" option is ignored and also not the assembler commands beginning with a dot, like .equ. The dot becomes red, the equ is default style.

In generally find these lexer definitions very confusing. So I ask here, has anyone already created a lexer for ARM assembler for gcc?

Thank you
Thorsten