ResourceScriptTokenList.h revision 326938
1326938Sdim//===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===// 2326938Sdim// 3326938Sdim// The LLVM Compiler Infrastructure 4326938Sdim// 5326938Sdim// This file is distributed under the University of Illinois Open Source 6326938Sdim// License. See LICENSE.TXT for details. 7326938Sdim// 8326938Sdim//===---------------------------------------------------------------------===// 9326938Sdim// 10326938Sdim// This is a part of llvm-rc tokens header. It lists all the possible tokens 11326938Sdim// that might occur in a correct .rc script. 12326938Sdim// 13326938Sdim//===---------------------------------------------------------------------===// 14326938Sdim 15326938Sdim 16326938Sdim// Long tokens. They might consist of more than one character. 17326938SdimTOKEN(Invalid) // Invalid token. Should not occur in a valid script. 18326938SdimTOKEN(Int) // Integer (decimal, octal or hexadecimal). 19326938SdimTOKEN(String) // String value. 20326938SdimTOKEN(Identifier) // Script identifier (resource name or type). 21326938Sdim 22326938Sdim// Short tokens. They usually consist of exactly one character. 23326938Sdim// The definitions are of the form SHORT_TOKEN(TokenName, TokenChar). 24326938Sdim// TokenChar is the one-character token representation occuring in the correct 25326938Sdim// .rc scripts. 26326938SdimSHORT_TOKEN(BlockBegin, '{') // Start of the script block; can also be BEGIN. 27326938SdimSHORT_TOKEN(BlockEnd, '}') // End of the block; can also be END. 28326938SdimSHORT_TOKEN(Comma, ',') // Comma - resource arguments separator. 29326938SdimSHORT_TOKEN(Plus, '+') // Addition operator. 30326938SdimSHORT_TOKEN(Minus, '-') // Subtraction operator. 31326938SdimSHORT_TOKEN(Pipe, '|') // Bitwise-OR operator. 32326938SdimSHORT_TOKEN(Amp, '&') // Bitwise-AND operator. 33326938SdimSHORT_TOKEN(Tilde, '~') // Bitwise-NOT operator. 34326938SdimSHORT_TOKEN(LeftParen, '(') // Left parenthesis in the script expressions. 35326938SdimSHORT_TOKEN(RightParen, ')') // Right parenthesis. 36