| /src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| tokens.d | 26 enum TOK : ubyte 430 enum FirstCKeyword = TOK.inline; 435 foreach (idx, enumName; __traits(allMembers, TOK)) { 436 static if (idx != __traits(getMember, TOK, enumName)) { 437 pragma(msg, "Error: Expected TOK.", enumName, " to be ", idx, " but is ", __traits(getMember, TOK, enumName)); 447 private immutable TOK[] keywords = 449 TOK.this_, 450 TOK.super_, 451 TOK.assert_ [all...] |
| parse.d | 115 if (token.value == TOK.module_) 124 if (token.value != TOK.identifier) 133 while (nextToken() == TOK.dot) 137 if (token.value != TOK.identifier) 147 if (token.value != TOK.semicolon) 165 if (token.value == TOK.rightCurly) 171 if (token.value != TOK.endOfFile) 186 while (token.value != TOK.semicolon && token.value != TOK.endOfFile) 205 if (!(skipAttributes(&token, &tk) && tk.value == TOK.module_) [all...] |
| cparse.d | 105 if (token.value == TOK.endOfFile) 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...] |
| lexer.d | 79 bool commentToken; // comments are TOK.comment's 80 bool tokenizeNewlines; // newlines are turned into TOK.endOfLine's 105 * commentToken = comments become TOK.comment's 160 return front() == TOK.endOfFile; 163 TOK front() const pure @property @nogc @safe 196 final TOK nextToken() 216 final TOK peekNext() 224 final TOK peekNext2() 251 t.value = TOK.endOfFile; // end of file 252 // Intentionally not advancing `p`, such that subsequent calls keep returning TOK.endOfFile [all...] |
| iasmgcc.d | 58 case TOK.semicolon: 59 case TOK.colon: 60 case TOK.endOfFile: 63 case TOK.leftBracket: 64 if (p.peekNext() == TOK.identifier) 78 p.check(TOK.rightBracket); 80 if (p.token.value == TOK.string_) 85 case TOK.string_: 90 if (p.token.value != TOK.leftParenthesis) 98 p.check(TOK.leftParenthesis) [all...] |
| tokens.h | 35 enum class TOK : unsigned char 455 TOK value; 482 static const char *toChars(TOK value);
|
| dscope.d | 594 TOK tok; 596 tok = TOK.null_; 598 tok = TOK.true_; 600 tok = TOK.false_; 602 tok = TOK.uns32 [all...] |
| identifier.d | 44 this(name.toDString(), TOK.identifier); 53 value = Identifier value (e.g. `Id.unitTest`) or `TOK.identifier` 288 id = new Identifier(sv.toString(), TOK.identifier, isAnonymous);
|
| hdrgen.d | 700 buf.writestring(Token.toString(s.tok)); 748 t.value != TOK.min && 749 t.value != TOK.comma && t.next.value != TOK.comma && 750 t.value != TOK.leftBracket && t.next.value != TOK.leftBracket && 751 t.next.value != TOK.rightBracket && 752 t.value != TOK.leftParenthesis && t.next.value != TOK.leftParenthesis && 753 t.next.value != TOK.rightParenthesis & [all...] |
| delegatize.d | 53 auto fld = new FuncLiteralDeclaration(loc, loc, tf, TOK.delegate_, null); 295 fld.tok = TOK.delegate_;
|
| statementsem.d | 732 if (!inferForeachAggregate(sc, fs.op == TOK.foreach_, fs.aggr, sapply)) 1094 if (fs.op == TOK.foreach_reverse_) 1107 if (fs.op == TOK.foreach_reverse_) 1119 if (fs.op == TOK.foreach_) 1163 if (fs.op == TOK.foreach_reverse_) 1197 if (fs.op == TOK.foreach_) 1364 if (fs.op == TOK.foreach_reverse_) 1471 const(char)* r = (fs.op == TOK.foreach_reverse_) ? "R" : ""; 1670 auto fld = new FuncLiteralDeclaration(fs.loc, fs.endloc, tf, TOK.delegate_, fs); 1767 auto ie = new ExpInitializer(loc, (fs.op == TOK.foreach_) ? fs.lwr : fs.upr) [all...] |
| statement.h | 329 TOK op; // TOKforeach or TOKforeach_reverse 353 TOK op; // TOKforeach or TOKforeach_reverse 629 TOK tok; member in class:ScopeGuardStatement
|
| statement.d | 928 TOK op; // TOK.foreach_ or TOK.foreach_reverse_ 942 extern (D) this(const ref Loc loc, TOK op, Parameters* parameters, Expression aggr, Statement _body, Loc endloc) 982 TOK op; // TOK.foreach_ or TOK.foreach_reverse_ 991 extern (D) this(const ref Loc loc, TOK op, Parameter prm, Expression lwr, Expression upr, Statement _body, Loc endloc) 1676 TOK tok; [all...] |
| cond.d | 197 auto fd = new FuncLiteralDeclaration(loc, loc, tf, TOK.reserved, null); 409 if (rangefe.op == TOK.foreach_) 434 aggrfe = new ForeachStatement(loc, TOK.foreach_, pparams[2], aggr,
|
| mtype.d | 3103 d = Token.toChars(TOK.void_); 3107 d = Token.toChars(TOK.int8); 3112 d = Token.toChars(TOK.uns8); 3117 d = Token.toChars(TOK.int16); 3122 d = Token.toChars(TOK.uns16); 3127 d = Token.toChars(TOK.int32); 3132 d = Token.toChars(TOK.uns32); 3137 d = Token.toChars(TOK.float32); 3142 d = Token.toChars(TOK.int64); 3147 d = Token.toChars(TOK.uns64) [all...] |
| semantic3.d | 366 if (fld.tok == TOK.delegate_) 369 fld.tok = TOK.function_; 373 if (fld.tok != TOK.function_) 374 fld.tok = TOK.delegate_; 1470 auto s = new ScopeGuardStatement(ctor.loc, TOK.onScopeFailure, ss);
|
| typesem.d | 2075 switch (mtype.tok) 2077 case TOK.enum_: 2083 case TOK.struct_: 2089 case TOK.union_: 2118 if (mtype.tok == TOK.enum_ && !mtype.members) 2131 if (mtype.tok == TOK.enum_ && s.isEnumDeclaration()) 2145 else if (mtype.tok == TOK.union_ && s.isUnionDeclaration() | [all...] |
| expression.h | 611 TOK tok; member in class:FuncExp 667 /* is(targ id tok tspec) 674 TOK tok; // ':' or '==' member in class:IsExp 675 TOK tok2; // 'struct', 'union', etc.
|
| expressionsem.d | 4071 if ((exp.fd.isNested() && exp.fd.tok == TOK.delegate_) || (exp.tok == TOK.reserved && exp.fd.treq && exp.fd.treq.ty == Tdelegate)) 4085 exp.fd.tok = TOK.delegate_; 4099 * So, should keep fd.tok == TOK.reserve if fd.treq == NULL. 4104 exp.fd.tok = TOK.function_ [all...] |
| func.d | 1929 if (fld.tok == TOK.reserved) 1931 fld.tok = TOK.function_; 3670 TOK tok; // TOK.function_ or TOK.delegate_ 3676 extern (D) this(const ref Loc loc, const ref Loc endloc, Type type, TOK tok, ForeachStatement fes, Identifier id = null [all...] |
| expression.d | 2315 this(const ref Loc loc, const EXP tok) 2317 super(loc, tok, __traits(classInstanceSize, ThisExp)); 3775 TOK tok; // TOK.reserved, TOK.delegate_, TOK.function_ 3788 tok = fd.tok; // save original kind of function/delegate/(infer) 3813 else if (fd.tok == TOK.reserved [all...] |
| /src/external/bsd/tcpdump/dist/ |
| print-dsa.c | 69 #define TOK(tag, byte, mask, shift) ((GET_U_1(&(((const u_char *) tag)[byte])) & (mask)) >> (shift)) 72 #define DSA_MODE(tag) TOK(tag, 0, 0xc0, 6) 77 #define DSA_TAGGED(tag) TOK(tag, 0, 0x20, 5) 78 #define DSA_DEV(tag) TOK(tag, 0, 0x1f, 0) 79 #define DSA_PORT(tag) TOK(tag, 1, 0xf8, 3) 80 #define DSA_TRUNK(tag) TOK(tag, 1, 0x04, 2) 81 #define DSA_RX_SNIFF(tag) TOK(tag, 1, 0x04, 2) 82 #define DSA_CFI(tag) TOK(tag, 1, 0x01, 0) 83 #define DSA_PRI(tag) TOK(tag, 2, 0xe0, 5) 84 #define DSA_VID(tag) ((u_short)((TOK(tag, 2, 0x0f, 0) << 8) | (TOK(tag, 3, 0xff, 0))) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Basic/ |
| TokenKinds.cpp | 18 #define TOK(X) #X, 24 const char *tok::getTokenName(TokenKind Kind) { 25 if (Kind < tok::NUM_TOKENS) 31 const char *tok::getPunctuatorSpelling(TokenKind Kind) { 40 const char *tok::getKeywordSpelling(TokenKind Kind) { 49 bool tok::isAnnotation(TokenKind Kind) { 59 bool tok::isPragmaAnnotation(TokenKind Kind) {
|
| IdentifierTable.cpp | 165 tok::TokenKind TokenCode, unsigned Flags, 182 Table.get(Keyword, AddResult == KS_Future ? tok::identifier : TokenCode); 190 tok::TokenKind TokenCode, 199 tok::ObjCKeywordKind ObjCID, 209 AddKeyword(StringRef(#NAME), tok::kw_ ## NAME, \ 211 #define ALIAS(NAME, TOK, FLAGS) \ 212 AddKeyword(StringRef(NAME), tok::kw_ ## TOK, \ 216 AddCXXOperatorKeyword(StringRef(#NAME), tok::ALIAS, *this); 219 AddObjCKeyword(StringRef(#NAME), tok::objc_##NAME, *this) [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
| TokenKinds.h | 22 namespace tok { namespace in namespace:clang 26 #define TOK(X) X, 73 return (K == tok::identifier) || (K == tok::raw_identifier); 79 return K == tok::string_literal || K == tok::wide_string_literal || 80 K == tok::utf8_string_literal || K == tok::utf16_string_literal || 81 K == tok::utf32_string_literal; 87 return K == tok::numeric_constant || K == tok::char_constant | [all...] |