| /netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
| H A D | tokens.d | 26 enum TOK : ubyte enum 430 enum FirstCKeyword = TOK.inline; 435 foreach (idx, enumName; __traits(allMembers, TOK)) { 436 static if (idx != __traits(getMember, TOK, enumName)) { 437 … "Error: Expected TOK.", enumName, " to be ", idx, " but is ", __traits(getMember, TOK, enumName)); 447 private immutable TOK[] keywords = variable 449 TOK.this_, 450 TOK.super_, 451 TOK.assert_, 452 TOK.null_, [all …]
|
| H A D | parse.d | 115 if (token.value == TOK.module_) in parseModuleDeclaration() 124 if (token.value != TOK.identifier) in parseModuleDeclaration() 133 while (nextToken() == TOK.dot) in parseModuleDeclaration() 137 if (token.value != TOK.identifier) in parseModuleDeclaration() 147 if (token.value != TOK.semicolon) in parseModuleDeclaration() 165 if (token.value == TOK.rightCurly) in parseModuleContent() 171 if (token.value != TOK.endOfFile) in parseModuleContent() 186 while (token.value != TOK.semicolon && token.value != TOK.endOfFile) in errorReturn() 205 if (!(skipAttributes(&token, &tk) && tk.value == TOK.module_)) 209 while (token.value != TOK.module_) [all …]
|
| H A D | cparse.d | 105 if (token.value == TOK.endOfFile) in parseModule() 174 case TOK.identifier: 180 case TOK.colon: 186 if (token.value == TOK.rightCurly) 188 else if (token.value == TOK.leftCurly) 196 case TOK.dot: 197 case TOK.arrow: 198 case TOK.plusPlus: 199 case TOK.minusMinus: 200 case TOK.leftBracket: [all …]
|
| H A D | lexer.d | 160 return front() == TOK.endOfFile; in version() 163 TOK front() const pure @property @nogc @safe in version() 196 final TOK nextToken() in nextToken() 216 final TOK peekNext() in peekNext() 224 final TOK peekNext2() in peekNext2() 251 t.value = TOK.endOfFile; // end of file in scan() 272 t.value = TOK.whitespace; in scan() 285 t.value = TOK.whitespace; in scan() 297 t.value = TOK.endOfLine; in scan() 306 t.value = TOK.whitespace; in scan() [all …]
|
| H A D | iasmgcc.d | 58 case TOK.semicolon: in parseExtAsmOperands() 59 case TOK.colon: in parseExtAsmOperands() 60 case TOK.endOfFile: in parseExtAsmOperands() 63 case TOK.leftBracket: in parseExtAsmOperands() 64 if (p.peekNext() == TOK.identifier) in parseExtAsmOperands() 78 p.check(TOK.rightBracket); in parseExtAsmOperands() 80 if (p.token.value == TOK.string_) in parseExtAsmOperands() 85 case TOK.string_: in parseExtAsmOperands() 90 if (p.token.value != TOK.leftParenthesis) in parseExtAsmOperands() 98 p.check(TOK.leftParenthesis); in parseExtAsmOperands() [all …]
|
| H A D | hdrgen.d | 748 t.value != TOK.min && in visit() 749 t.value != TOK.comma && t.next.value != TOK.comma && in visit() 750 t.value != TOK.leftBracket && t.next.value != TOK.leftBracket && in visit() 751 t.next.value != TOK.rightBracket && in visit() 752 t.value != TOK.leftParenthesis && t.next.value != TOK.leftParenthesis && in visit() 753 t.next.value != TOK.rightParenthesis && in visit() 754 t.value != TOK.dot && t.next.value != TOK.dot) in visit() 1665 if (f.tok != TOK.reserved) in visit() 2216 if (e.tok2 != TOK.reserved) in expressionPrettyPrint() 2222 if (e.tok == TOK.colon) in expressionPrettyPrint() [all …]
|
| H A D | dscope.d | 594 TOK tok; in search_correct_C() 596 tok = TOK.null_; in search_correct_C() 598 tok = TOK.true_; in search_correct_C() 600 tok = TOK.false_; in search_correct_C() 602 tok = TOK.uns32; in search_correct_C() 604 tok = target.c.wchar_tsize == 2 ? TOK.wchar_ : TOK.dchar_; in search_correct_C()
|
| H A D | tokens.h | 35 enum class TOK : unsigned char enum 455 TOK value; 482 static const char *toChars(TOK value);
|
| H A D | statementsem.d | 732 if (!inferForeachAggregate(sc, fs.op == TOK.foreach_, fs.aggr, sapply)) in package() 1094 if (fs.op == TOK.foreach_reverse_) in package() 1107 if (fs.op == TOK.foreach_reverse_) in package() 1119 if (fs.op == TOK.foreach_) in package() 1163 if (fs.op == TOK.foreach_reverse_) in package() 1197 if (fs.op == TOK.foreach_) in package() 1364 if (fs.op == TOK.foreach_reverse_) in package() 1471 const(char)* r = (fs.op == TOK.foreach_reverse_) ? "R" : ""; in package() 1670 auto fld = new FuncLiteralDeclaration(fs.loc, fs.endloc, tf, TOK.delegate_, fs); in package() 1767 auto ie = new ExpInitializer(loc, (fs.op == TOK.foreach_) ? fs.lwr : fs.upr); in package() [all …]
|
| H A D | identifier.d | 44 this(name.toDString(), TOK.identifier); in this() 288 id = new Identifier(sv.toString(), TOK.identifier, isAnonymous); in idPool()
|
| H A D | delegatize.d | 53 auto fld = new FuncLiteralDeclaration(loc, loc, tf, TOK.delegate_, null); in toDelegate() 295 fld.tok = TOK.delegate_; in ensureStaticLinkTo()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | lexer.h | 41 TOK nextToken(); 42 TOK peekNext(); 43 TOK peekNext2(); 48 TOK wysiwygStringConstant(Token *t, int tc); 49 TOK hexStringConstant(Token *t); 50 TOK delimitedStringConstant(Token *t); 51 TOK tokenStringConstant(Token *t); 52 TOK escapeStringConstant(Token *t); 53 TOK charConstant(Token *t); 55 TOK number(Token *t); [all …]
|
| H A D | ctfe.h | 99 CTFEExp(TOK tok); 201 int comparePointers(TOK op, Expression *agg1, dinteger_t ofs1, Expression *agg2, dinteger_t ofs2); 205 UnionExp pointerArithmetic(Loc loc, TOK op, Type *type, 240 int ctfeEqual(Loc loc, TOK op, Expression *e1, Expression *e2); 243 int ctfeIdentity(Loc loc, TOK op, Expression *e1, Expression *e2); 246 int specificCmp(TOK op, int rawCmp); 249 int intUnsignedCmp(TOK op, dinteger_t n1, dinteger_t n2); 252 int intSignedCmp(TOK op, sinteger_t n1, sinteger_t n2); 255 int realCmp(TOK op, real_t r1, real_t r2); 258 int ctfeCmp(Loc loc, TOK op, Expression *e1, Expression *e2);
|
| H A D | parse.h | 130 void check(Loc loc, TOK value); 131 void check(TOK value); 132 void check(TOK value, const char *string); 133 void checkParens(TOK value, Expression *e); 134 bool isDeclaration(Token *t, int needId, TOK endtok, Token **pt); 136 … bool isDeclarator(Token **pt, int *haveId, int *haveTpl, TOK endtok, bool allowAltSyntax = true);
|
| H A D | expression.h | 85 bool isUnaArrayOp(TOK op); 86 bool isBinArrayOp(TOK op); 87 bool isBinAssignArrayOp(TOK op); 129 TOK op; // to minimize use of dynamic_cast 133 Expression(Loc loc, TOK op, int size); 190 bool checkReadModifyWrite(TOK rmwOp, Expression *ex = NULL); 579 SymbolExp(Loc loc, TOK op, int size, Declaration *var, bool hasOverloads); 634 TOK tok; 703 TOK tok; // ':' or '==' 705 TOK tok2; // 'struct', 'union', etc. [all …]
|
| H A D | lexer.c | 151 TOK Lexer::nextToken() in nextToken() 185 TOK Lexer::peekNext() in peekNext() 194 TOK Lexer::peekNext2() in peekNext2() 371 t->value = (TOK) id->getValue(); in scan() 1079 TOK Lexer::wysiwygStringConstant(Token *t, int tc) in wysiwygStringConstant() 1144 TOK Lexer::hexStringConstant(Token *t) in hexStringConstant() 1236 TOK Lexer::delimitedStringConstant(Token *t) in delimitedStringConstant() 1391 TOK Lexer::tokenStringConstant(Token *t) in tokenStringConstant() 1437 TOK Lexer::escapeStringConstant(Token *t) in escapeStringConstant() 1514 TOK Lexer::charConstant(Token *t) in charConstant() [all …]
|
| H A D | tokens.h | 34 enum TOK enum 200 TOK value; 230 static const char *toChars(TOK);
|
| H A D | statement.h | 304 TOK op; // TOKforeach or TOKforeach_reverse 318 …ForeachStatement(Loc loc, TOK op, Parameters *parameters, Expression *aggr, Statement *body, Loc e… 330 TOK op; // TOKforeach or TOKforeach_reverse 339 ForeachRangeStatement(Loc loc, TOK op, Parameter *prm, 631 TOK tok; 634 OnScopeStatement(Loc loc, TOK tok, Statement *statement);
|
| H A D | tokens.c | 184 const char *Token::toChars(TOK value) in toChars() 203 TOK value; 360 TOK v = keywords[nkeywords].value; in TokenInitializer()
|
| H A D | ctfeexpr.c | 154 CTFEExp::CTFEExp(TOK tok) in CTFEExp() 827 UnionExp pointerArithmetic(Loc loc, TOK op, Type *type, in pointerArithmetic() 931 int comparePointers(TOK op, Expression *agg1, dinteger_t ofs1, Expression *agg2, dinteger_t ofs2) in comparePointers() 1044 static bool numCmp(TOK op, N n1, N n2) in numCmp() 1063 int specificCmp(TOK op, int rawCmp) in specificCmp() 1069 int intUnsignedCmp(TOK op, dinteger_t n1, dinteger_t n2) in intUnsignedCmp() 1075 int intSignedCmp(TOK op, sinteger_t n1, sinteger_t n2) in intSignedCmp() 1081 int realCmp(TOK op, real_t r1, real_t r2) in realCmp() 1386 int ctfeEqual(Loc loc, TOK op, Expression *e1, Expression *e2) in ctfeEqual() 1395 int ctfeIdentity(Loc loc, TOK op, Expression *e1, Expression *e2) in ctfeIdentity() [all …]
|
| H A D | target.h | 69 static bool isVectorOpSupported(Type *type, TOK op, Type *t2 = NULL);
|
| H A D | arrayop.c | 549 bool isUnaArrayOp(TOK op) in isUnaArrayOp() 566 bool isBinArrayOp(TOK op) in isBinArrayOp() 590 bool isBinAssignArrayOp(TOK op) in isBinAssignArrayOp()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
| H A D | TokenKinds.def | 11 // languages. Users of this file must optionally #define the TOK, KEYWORD, 17 #ifndef TOK 18 #define TOK(X) 21 #define PUNCTUATOR(X,Y) TOK(X) 24 #define KEYWORD(X,Y) TOK(kw_ ## X) 81 #define ANNOTATION(X) TOK(annot_ ## X) 141 TOK(unknown) // Not a token. 142 TOK(eof) // End of file. 143 TOK(eod) // End of preprocessing directive (end of line inside a 145 TOK(code_completion) // Code completion marker [all …]
|
| H A D | TokenKinds.h | 26 #define TOK(X) X, macro
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/ |
| H A D | TokenKinds.cpp | 18 #define TOK(X) #X, macro
|