REgular Expression for assembler output

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
bill2009
Posts: 6
Joined: Wed Jul 18, 2012 11:44 pm
Location: ottawa, canada

REgular Expression for assembler output

Post by bill2009 »

My assembler's error messages look like the following

Code: Select all

> > >wiznetwebolduino.asm(20) CCALL(2): error: symbol undefined                    
(wiznetolduino.asm is the filename and 20 is the line number)
I've developed the following RE which works with find/replace

Code: Select all

^> > >([a-z]+\.asm)\(([0-9]+)
i.e. if i replace the RE with \1 I get the filename wiznetolduino.asm and if i replace with \2 I get the line number 20

In the tool output with file register=1 and line register=2 I get

Code: Select all

C:\lcc42\examples\wiznet\> > >wiznetolduino.asm(20) CCALL contains an incorrect path
The C:\lcc42\examples\wiznet\ part is the current path but it seems to be substituting the line from the beginning for the file register.

What am I doing wrong? I'm using textpad 6 and I have the posix box checked.
Post Reply