Just documenting this...
C (since C99) and C+ (since 2014 (partial) and the upcoming standard) support initializing fields of structs/unions by name. This syntax is used by the glibc pthread.h file, among others. The syntax looks somewhat like a regular initialization block
{ .field1 = value1, .field2 = value2, etc. }
Contextually this looks like a Identifier starting with a .; and I'm getting unrecognized errors thrown by the Antlr CPP14 lexer.
Found while working on my experimental C++ preprocessor using the CPP14 lexer and an overloaded nextToken method.
Just documenting this... C (since C99) and C+ (since 2014 (partial) and the upcoming standard) support initializing fields of structs/unions by name. This syntax is used by the glibc pthread.h file, among others. The syntax looks somewhat like a regular initialization block
Contextually this looks like a Identifier starting with a
.
; and I'm getting unrecognized errors thrown by the Antlr CPP14 lexer.Found while working on my experimental C++ preprocessor using the CPP14 lexer and an overloaded
nextToken
method.Dave