User forums > Using Code::Blocks

Parsing of IAR Build Output

(1/3) > >>

Neoman:
Hallo,

output of IAR Compiler looks like:

D:\work\Project\TTS_O\quellcode\tts_o\myFile.h(37) : Error[Pe040]: expected an identifier

How to set the regular expression to parse the outputs of IAR Compiler ?
Where to find the description how to customize the regular expression ?

(Settings/Compiler and debugger/other settings/advanced options/output parsing)

Best regards

Neoman

Neoman:
Please Help,

does exists a syntax documentation for the output parsing ?

Best Regards

Neoman

killerbot:
have a look at the syntax of the out of the box compilers. Or google around on regular expressions : I am sure you will find the solution then.

Neoman:
Thanks for replay,

the output syntax of my compiler is clear for me. This is not the problem.
I'm looking for syntax of code::blocks output parser to parse for errors, warning etc.

How to interpret this expression ?

([][{}() \t#%$~A-Za-z0-9_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)

How to change it for my compiler ?

Thanks for help

Neoman

Jenna:
As killerbot says these are regular expressions and there are tons of documentation all over the web.
You can try this one with your error-output:
--- Code: ---([][{} \t#%$~A-Za-z0-9_:+/\.-\\]+)\(([0-9]+)\) : (.*)
--- End code ---
with type set to "Error" and "Subexpression indices" set to:

* Message: 3
* Additional message 2: 0
* Additional message 3: 0
* Filename: 1
* Line: 2
If you test your message you get the following output:

--- Code: ---Regular expression analyzed as follows:

Type: Error message
Filename: D:/work/Project/TTS_O/quellcode/tts_o/myFile.h
Line number: 37
Message: Error[Pe040]: expected an identifier

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version