Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding new Bit Operators for new C-type language
Adding new Bit Operators for new C-type language [message #1046913] Mon, 22 April 2013 14:35
Thomas Märkl is currently offline Thomas MärklFriend
Messages: 1
Registered: April 2013
Junior Member
Hi Everyone!

I am currently extending the CDT to parse Handel-C, a C-type programming language used for programming FPGAs.

I am almost done with the implementation but I am having trouble adding Handel-C specific Bit-Operators such as "@" - Concatenation, "<-" Take and "\\"-Drop.

I tried adding them using the addKeyword(char[], int) Method in the ScannerExtensionConfiguration as I have done with the Handel-C Keywords. However, with these Operators it doesn't work.

I found a Method in the TokenUtil.class file named isOperator(int kind) which returns true for all the C and CPP Operator Tokens defined in IToken. But this class cannot be extended effectively to build a plug-in.

Anyone know how to do this without modifying the CDT-Source?
Previous Topic:Special character in editor
Next Topic:CDT reports error with va_list but compiles anyway
Goto Forum:
  


Current Time: Thu Apr 25 22:24:04 GMT 2024

Powered by FUDForum. Page generated in 0.03358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top