User forums > Help

Help with lexers: Docu?

(1/1)

MortenMacFly:
Dear all,
I'm trying to update the lexer for Matlab I've created serveral time ago. I know that "even more time ago" (tm) mandrav pointed me to a place where I could read about the format of lexer files. Unfortunately I don't remember this reference and cannot find it. Anybody out there who knows where this was (in the forums?!)?
With regards, Morten.

Michael:
Hello,

May be this one?

Best wishes,
Michael

mandrav:
Someone has copied it to the wiki (I think it was Takeshi):

here

MortenMacFly:

--- Quote from: mandrav on March 02, 2006, 01:51:43 pm ---here

--- End quote ---
Thanks! That's the one I ment (I completely forgot we have a WiKi... :oops:). But the forum post was helpful, too.
And: Good news! I'm nearly finished, there is only one question left. Within the MASM lexer there are several groups of keywords. The third group is "Registers". How is it handeled that the index "2" of the keyword groups is assigned to the type "Register" that has the scintilla index "8" defined? I see no relation between that. That's the last thing I still do not understand... :(
Morten.

MortenMacFly:

--- Quote from: MortenMacFly on March 02, 2006, 02:17:31 pm ---How is it handeled that the index "2" of the keyword groups is assigned to the type "Register" that has the scintilla index "8" defined?

--- End quote ---
Nevermind, I read the WiKi again and there it was:

What each set does and which sets are used by a lexer, is defined by the lexer itself.
If you open LexCPP.cxx (from the scintilla sources), you will find the following: [...]

Sorry for the noise.
Morten.

Navigation

[0] Message Index

Go to full version