SynWrite came to my attention and I do like it very much.
I have started a lexer for an internel script language. It's is working fine in SynWrite.
Now I'm looking for a way to continue a line, if it ends on the char | (maybe also whitspace afterwards)
E.g. a single line to lex would look like this:
Code: Select all
RCGetItems,Inspections.Inspection_1.Tool Set.002 M adjust threshold.Result Double Result.Range.Fail High|
Inspections.Inspection_1.Tool Set.003 M adjust lut.Result Double Result.Range.Fail High|
Inspections.Inspection_1.Tool Set.930 M Max area 1 Image.Result Double Result.Value|
RemoteInputs.Remote Input 8|
RemoteInputs.Remote Input 7|
RemoteInputs.Remote Input 9,,Col
Is there a way to achive this in SynWrite ?
This is also an example on a file to lex:
Code: Select all
RCPutConfig,,RT00100.0110-RC-ExternalTool-M2.pac,300000
PrintValue,Expecting LoadTime to be less than 6 Second.
If,LoadTime,grt,6
LogVariable,LoadTime,FAIL
else
LogVariable,LoadTime
Endif
*
RCSetItems,Inspections.Inspection_1.Tool Set.Image1=Test Image1-051503.bmp
********* Move to First Solid Circle **************
*************************************************************
Set All External Tool Inputs
*************************************************************
RCSetItems,Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 01=101|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 02=111|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 03=121|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 04=131|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 05=141|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 06=151|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 07=161|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 08=171|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 09=181|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 10=191|
Inspections.Inspection_1.Tool Set.External Tool.DLL.Input 11=201, , Col
Lennart