News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Help with lexers: Docu?

Started by MortenMacFly, March 02, 2006, 01:24:07 PM

Previous topic - Next topic

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Michael

Hello,

May be this one?

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mandrav

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

here
Be patient!
This bug will be fixed soon...

MortenMacFly

Quote from: mandrav on March 02, 2006, 01:51:43 PM
here
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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?
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]