1326938Sdim//===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===// 2326938Sdim// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6326938Sdim// 7326938Sdim//===---------------------------------------------------------------------===// 8326938Sdim// 9326938Sdim// This is a part of llvm-rc tokens header. It lists all the possible tokens 10326938Sdim// that might occur in a correct .rc script. 11326938Sdim// 12326938Sdim//===---------------------------------------------------------------------===// 13326938Sdim 14326938Sdim 15326938Sdim// Long tokens. They might consist of more than one character. 16326938SdimTOKEN(Invalid) // Invalid token. Should not occur in a valid script. 17326938SdimTOKEN(Int) // Integer (decimal, octal or hexadecimal). 18326938SdimTOKEN(String) // String value. 19326938SdimTOKEN(Identifier) // Script identifier (resource name or type). 20326938Sdim 21326938Sdim// Short tokens. They usually consist of exactly one character. 22326938Sdim// The definitions are of the form SHORT_TOKEN(TokenName, TokenChar). 23326938Sdim// TokenChar is the one-character token representation occuring in the correct 24326938Sdim// .rc scripts. 25326938SdimSHORT_TOKEN(BlockBegin, '{') // Start of the script block; can also be BEGIN. 26326938SdimSHORT_TOKEN(BlockEnd, '}') // End of the block; can also be END. 27326938SdimSHORT_TOKEN(Comma, ',') // Comma - resource arguments separator. 28326938SdimSHORT_TOKEN(Plus, '+') // Addition operator. 29326938SdimSHORT_TOKEN(Minus, '-') // Subtraction operator. 30326938SdimSHORT_TOKEN(Pipe, '|') // Bitwise-OR operator. 31326938SdimSHORT_TOKEN(Amp, '&') // Bitwise-AND operator. 32326938SdimSHORT_TOKEN(Tilde, '~') // Bitwise-NOT operator. 33326938SdimSHORT_TOKEN(LeftParen, '(') // Left parenthesis in the script expressions. 34326938SdimSHORT_TOKEN(RightParen, ')') // Right parenthesis. 35