Author Topic: Help with lexers: Docu?  (Read 4303 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Help with lexers: Docu?
« on: March 02, 2006, 01:24:07 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Help with lexers: Docu?
« Reply #1 on: March 02, 2006, 01:46:30 pm »
Hello,

May be this one?

Best wishes,
Michael

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Help with lexers: Docu?
« Reply #2 on: March 02, 2006, 01:51:43 pm »
Someone has copied it to the wiki (I think it was Takeshi):

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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Help with lexers: Docu?
« Reply #3 on: March 02, 2006, 02:17:31 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Help with lexers: Docu?
« Reply #4 on: March 02, 2006, 02:21:35 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ