Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/wabt/token.def
1 /* 2 * Copyright 2018 WebAssembly Community Group participants 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef WABT_TOKEN 18 #error "You must define WABT_TOKEN before including this file." 19 #endif 20 21 /* Tokens with no additional data (i.e. bare). */ 22 WABT_TOKEN(Invalid, "Invalid") 23 WABT_TOKEN(After, "after") 24 WABT_TOKEN(Array, "array") 25 WABT_TOKEN(AssertException, "assert_exception") 26 WABT_TOKEN(AssertExhaustion, "assert_exhaustion") 27 WABT_TOKEN(AssertInvalid, "assert_invalid") 28 WABT_TOKEN(AssertMalformed, "assert_malformed") 29 WABT_TOKEN(AssertReturn, "assert_return") 30 WABT_TOKEN(AssertTrap, "assert_trap") 31 WABT_TOKEN(AssertUnlinkable, "assert_unlinkable") 32 WABT_TOKEN(Before, "before") 33 WABT_TOKEN(Bin, "bin") 34 WABT_TOKEN(Item, "item") 35 WABT_TOKEN(Data, "data") 36 WABT_TOKEN(Declare, "declare") 37 WABT_TOKEN(Delegate, "delegate") 38 WABT_TOKEN(Do, "do") 39 WABT_TOKEN(Either, "either") 40 WABT_TOKEN(Elem, "elem") 41 WABT_TOKEN(Eof, "EOF") 42 WABT_TOKEN(Tag, "tag") 43 WABT_TOKEN(Export, "export") 44 WABT_TOKEN(Field, "field") 45 WABT_TOKEN(Function, "function") 46 WABT_TOKEN(Get, "get") 47 WABT_TOKEN(Global, "global") 48 WABT_TOKEN(Import, "import") 49 WABT_TOKEN(Invoke, "invoke") 50 WABT_TOKEN(Input, "input") 51 WABT_TOKEN(Local, "local") 52 WABT_TOKEN(Lpar, "(") 53 WABT_TOKEN(Memory, "memory") 54 WABT_TOKEN(Module, "module") 55 WABT_TOKEN(Mut, "mut") 56 WABT_TOKEN(NanArithmetic, "nan:arithmetic") 57 WABT_TOKEN(NanCanonical, "nan:canonical") 58 WABT_TOKEN(Offset, "offset") 59 WABT_TOKEN(Output, "output") 60 WABT_TOKEN(Param, "param") 61 WABT_TOKEN(Ref, "ref") 62 WABT_TOKEN(Quote, "quote") 63 WABT_TOKEN(Register, "register") 64 WABT_TOKEN(Result, "result") 65 WABT_TOKEN(Rpar, ")") 66 WABT_TOKEN(Shared, "shared") 67 WABT_TOKEN(Start, "start") 68 WABT_TOKEN(Struct, "struct") 69 WABT_TOKEN(Table, "table") 70 WABT_TOKEN(Then, "then") 71 WABT_TOKEN(Type, "type") 72 WABT_TOKEN(I8X16, "i8x16") 73 WABT_TOKEN(I16X8, "i16x8") 74 WABT_TOKEN(I32X4, "i32x4") 75 WABT_TOKEN(I64X2, "i64x2") 76 WABT_TOKEN(F32X4, "f32x4") 77 WABT_TOKEN(F64X2, "f64x2") 78 WABT_TOKEN_FIRST(Bare, Invalid) 79 WABT_TOKEN_LAST(Bare, F64X2) 80 81 /* Tokens with Literal data. */ 82 WABT_TOKEN(Float, "FLOAT") 83 WABT_TOKEN(Int, "INT") 84 WABT_TOKEN(Nat, "NAT") 85 WABT_TOKEN_FIRST(Literal, Float) 86 WABT_TOKEN_LAST(Literal, Nat) 87 88 /* Tokens with Opcode data. */ 89 WABT_TOKEN(AtomicFence, "atomic.fence") 90 WABT_TOKEN(AtomicLoad, "ATOMIC_LOAD") 91 WABT_TOKEN(AtomicNotify, "ATOMIC_NOTIFY") 92 WABT_TOKEN(AtomicRmw, "ATOMIC_RMW") 93 WABT_TOKEN(AtomicRmwCmpxchg, "ATOMIC_RMW_CMPXCHG") 94 WABT_TOKEN(AtomicStore, "ATOMIC_STORE") 95 WABT_TOKEN(AtomicWait, "ATOMIC_WAIT") 96 WABT_TOKEN(Binary, "BINARY") 97 WABT_TOKEN(Block, "block") 98 WABT_TOKEN(Br, "br") 99 WABT_TOKEN(BrIf, "br_if") 100 WABT_TOKEN(BrTable, "br_table") 101 WABT_TOKEN(Code, "code") 102 WABT_TOKEN(Call, "call") 103 WABT_TOKEN(CallIndirect, "call_indirect") 104 WABT_TOKEN(CallRef, "call_ref") 105 WABT_TOKEN(Catch, "catch") 106 WABT_TOKEN(CatchAll, "catch_all") 107 WABT_TOKEN(Compare, "COMPARE") 108 WABT_TOKEN(Const, "CONST") 109 WABT_TOKEN(Convert, "CONVERT") 110 WABT_TOKEN(DataDrop, "data.drop") 111 WABT_TOKEN(Drop, "drop") 112 WABT_TOKEN(ElemDrop, "elem.drop") 113 WABT_TOKEN(Else, "else") 114 WABT_TOKEN(End, "end") 115 WABT_TOKEN(GlobalGet, "global.get") 116 WABT_TOKEN(GlobalSet, "global.set") 117 WABT_TOKEN(If, "if") 118 WABT_TOKEN(Load, "LOAD") 119 WABT_TOKEN(LocalGet, "local.get") 120 WABT_TOKEN(LocalSet, "local.set") 121 WABT_TOKEN(LocalTee, "local.tee") 122 WABT_TOKEN(Loop, "loop") 123 WABT_TOKEN(MemoryCopy, "memory.copy") 124 WABT_TOKEN(MemoryFill, "memory.fill") 125 WABT_TOKEN(MemoryGrow, "memory.grow") 126 WABT_TOKEN(MemoryInit, "memory.init") 127 WABT_TOKEN(MemorySize, "memory.size") 128 WABT_TOKEN(Nop, "nop") 129 WABT_TOKEN(RefExtern, "ref.extern") 130 WABT_TOKEN(RefFunc, "ref.func") 131 WABT_TOKEN(RefIsNull, "ref.is_null") 132 WABT_TOKEN(RefNull, "ref.null") 133 WABT_TOKEN(Rethrow, "rethrow") 134 WABT_TOKEN(ReturnCallIndirect, "return_call_indirect") 135 WABT_TOKEN(ReturnCall, "return_call") 136 WABT_TOKEN(Return, "return") 137 WABT_TOKEN(Select, "select") 138 WABT_TOKEN(SimdLaneOp, "SIMDLANEOP") 139 WABT_TOKEN(SimdLoadSplat, "SIMDLOADSPLAT") 140 WABT_TOKEN(SimdLoadLane, "SIMDLOADLANE") 141 WABT_TOKEN(SimdStoreLane, "SIMDSTORELANE") 142 WABT_TOKEN(SimdShuffleOp, "i8x16.shuffle") 143 WABT_TOKEN(Store, "STORE") 144 WABT_TOKEN(TableCopy, "table.copy") 145 WABT_TOKEN(TableFill, "table.fill") 146 WABT_TOKEN(TableGet, "table.get") 147 WABT_TOKEN(TableGrow, "table.grow") 148 WABT_TOKEN(TableInit, "table.init") 149 WABT_TOKEN(TableSet, "table.set") 150 WABT_TOKEN(TableSize, "table.size") 151 WABT_TOKEN(Ternary, "TERNARY") 152 WABT_TOKEN(Throw, "throw") 153 WABT_TOKEN(Try, "try") 154 WABT_TOKEN(Unary, "UNARY") 155 WABT_TOKEN(Unreachable, "unreachable") 156 WABT_TOKEN_FIRST(Opcode, AtomicFence) 157 WABT_TOKEN_LAST(Opcode, Unreachable) 158 159 /* Tokens with string data. */ 160 WABT_TOKEN(AlignEqNat, "align=") 161 WABT_TOKEN(LparAnn, "Annotation") 162 WABT_TOKEN(OffsetEqNat, "offset=") 163 WABT_TOKEN(Reserved, "Reserved") 164 WABT_TOKEN(Text, "TEXT") 165 WABT_TOKEN(Var, "VAR") 166 WABT_TOKEN_FIRST(String, AlignEqNat) 167 WABT_TOKEN_LAST(String, Var) 168 169 /* Tokens with Type data. */ 170 WABT_TOKEN(ValueType, "VALUETYPE") 171 WABT_TOKEN_FIRST(Type, ValueType) 172 WABT_TOKEN_LAST(Type, ValueType) 173 174 /* Tokens with Type data, but are reference kinds. */ 175 WABT_TOKEN(Func, "func") 176 WABT_TOKEN(Extern, "extern") 177 WABT_TOKEN(Exn, "exn") 178 WABT_TOKEN_FIRST(RefKind, Func) 179 WABT_TOKEN_LAST(RefKind, Exn)