[cfe-dev] How to make clang compile any other language ? I want it to support ACSL (specification language of C).)

Hal Finkel hfinkel at anl.gov
Sat Jul 27 20:41:05 PDT 2013


----- Original Message -----
> 
> 
> Thanks Hal.
> I am now facing other problem. While i defined my new keywords in
> TokenKinds.def, and checked for the generated tokens on a test file
> by the command :
> -Xclang -dump-tokens test_file.c
> I got to know that it is treating my keywords as identifiers. What
> can I do so that they can be treated as keywords and not
> identifiers.

Did you predicate these tokens on language options that are not enabled?

In any case, I recommend that you put a breakpoint in IdentifierTable::AddKeywords (to make sure that your keywords are being added) and Preprocessor::LookUpIdentifierInfo and try to figure out what's happening.

 -Hal

> Thanks in advance.
> Surbhi
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list