ResourceScriptTokenList.h revision 326938
1296417Sdim//===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===// 2254721Semaste// 3353358Sdim// The LLVM Compiler Infrastructure 4353358Sdim// 5353358Sdim// This file is distributed under the University of Illinois Open Source 6254721Semaste// License. See LICENSE.TXT for details. 7254721Semaste// 8254721Semaste//===---------------------------------------------------------------------===// 9254721Semaste// 10254721Semaste// This is a part of llvm-rc tokens header. It lists all the possible tokens 11254721Semaste// that might occur in a correct .rc script. 12296417Sdim// 13296417Sdim//===---------------------------------------------------------------------===// 14296417Sdim 15309124Sdim 16296417Sdim// Long tokens. They might consist of more than one character. 17254721SemasteTOKEN(Invalid) // Invalid token. Should not occur in a valid script. 18314564SdimTOKEN(Int) // Integer (decimal, octal or hexadecimal). 19254721SemasteTOKEN(String) // String value. 20254721SemasteTOKEN(Identifier) // Script identifier (resource name or type). 21254721Semaste 22258884Semaste// Short tokens. They usually consist of exactly one character. 23262528Semaste// The definitions are of the form SHORT_TOKEN(TokenName, TokenChar). 24296417Sdim// TokenChar is the one-character token representation occuring in the correct 25254721Semaste// .rc scripts. 26254721SemasteSHORT_TOKEN(BlockBegin, '{') // Start of the script block; can also be BEGIN. 27254721SemasteSHORT_TOKEN(BlockEnd, '}') // End of the block; can also be END. 28254721SemasteSHORT_TOKEN(Comma, ',') // Comma - resource arguments separator. 29314564SdimSHORT_TOKEN(Plus, '+') // Addition operator. 30314564SdimSHORT_TOKEN(Minus, '-') // Subtraction operator. 31341825SdimSHORT_TOKEN(Pipe, '|') // Bitwise-OR operator. 32341825SdimSHORT_TOKEN(Amp, '&') // Bitwise-AND operator. 33341825SdimSHORT_TOKEN(Tilde, '~') // Bitwise-NOT operator. 34341825SdimSHORT_TOKEN(LeftParen, '(') // Left parenthesis in the script expressions. 35254721SemasteSHORT_TOKEN(RightParen, ')') // Right parenthesis. 36314564Sdim