Author Topic: STL/TR1 lexer^  (Read 5221 times)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
STL/TR1 lexer^
« on: November 26, 2008, 05:05:59 pm »
I've modified the C++ lexer to include most of the STL and C++0x TR1 as user keywords. I have also added a few gcc specific keywords as well as builtin intrinsics and attribute names, since these are easy to mistype and hard to read. Basically I've highlighted most everything that I've mistyped more than twice in my life...
I'm not sure about how useful it really is (considering that it bloats up the lexer quite a bit), nor am I sure about what colour scheme to use etc., therefore it isn't committed to svn -- instead play with the attached file for now, and tell me what you think.

[attachment deleted by admin]
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: STL/TR1 lexer^
« Reply #1 on: November 26, 2008, 05:09:22 pm »
I've modified the C++ lexer to include most of the STL and C++0x TR1 as user keywords. I have also added a few gcc specific keywords as well as builtin intrinsics and attribute names, since these are easy to mistype and hard to read. Basically I've highlighted most everything that I've mistyped more than twice in my life...
I'm not sure about how useful it really is (considering that it bloats up the lexer quite a bit), nor am I sure about what colour scheme to use etc., therefore it isn't committed to svn -- instead play with the attached file for now, and tell me what you think.

good job 

 :D :D :D :D :D :D

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: STL/TR1 lexer^
« Reply #2 on: December 01, 2008, 03:03:45 pm »
play with the attached file for now, and tell me what you think.
I thinks it's OK to put it to SVN. Looks good (although in 98% of my code I see not difference as I am not using those keywords... ;-))
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