ResourceScriptTokenList.h revision 327952
1//===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===---------------------------------------------------------------------===//
9//
10// This is a part of llvm-rc tokens header. It lists all the possible tokens
11// that might occur in a correct .rc script.
12//
13//===---------------------------------------------------------------------===//
14
15
16// Long tokens. They might consist of more than one character.
17TOKEN(Invalid)      // Invalid token. Should not occur in a valid script.
18TOKEN(Int)          // Integer (decimal, octal or hexadecimal).
19TOKEN(String)       // String value.
20TOKEN(Identifier)   // Script identifier (resource name or type).
21
22// Short tokens. They usually consist of exactly one character.
23// The definitions are of the form SHORT_TOKEN(TokenName, TokenChar).
24// TokenChar is the one-character token representation occuring in the correct
25// .rc scripts.
26SHORT_TOKEN(BlockBegin, '{')   // Start of the script block; can also be BEGIN.
27SHORT_TOKEN(BlockEnd, '}')     // End of the block; can also be END.
28SHORT_TOKEN(Comma, ',')        // Comma - resource arguments separator.
29SHORT_TOKEN(Plus, '+')         // Addition operator.
30SHORT_TOKEN(Minus, '-')        // Subtraction operator.
31SHORT_TOKEN(Pipe, '|')         // Bitwise-OR operator.
32SHORT_TOKEN(Amp, '&')          // Bitwise-AND operator.
33SHORT_TOKEN(Tilde, '~')        // Bitwise-NOT operator.
34SHORT_TOKEN(LeftParen, '(')    // Left parenthesis in the script expressions.
35SHORT_TOKEN(RightParen, ')')   // Right parenthesis.
36