Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:45

0001 //===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===---------------------------------------------------------------------===//
0008 //
0009 // This is a part of llvm-rc tokens header. It lists all the possible tokens
0010 // that might occur in a correct .rc script.
0011 //
0012 //===---------------------------------------------------------------------===//
0013 
0014 
0015 // Long tokens. They might consist of more than one character.
0016 TOKEN(Invalid)      // Invalid token. Should not occur in a valid script.
0017 TOKEN(Int)          // Integer (decimal, octal or hexadecimal).
0018 TOKEN(String)       // String value.
0019 TOKEN(Identifier)   // Script identifier (resource name or type).
0020 
0021 // Short tokens. They usually consist of exactly one character.
0022 // The definitions are of the form SHORT_TOKEN(TokenName, TokenChar).
0023 // TokenChar is the one-character token representation occuring in the correct
0024 // .rc scripts.
0025 SHORT_TOKEN(BlockBegin, '{')   // Start of the script block; can also be BEGIN.
0026 SHORT_TOKEN(BlockEnd, '}')     // End of the block; can also be END.
0027 SHORT_TOKEN(Comma, ',')        // Comma - resource arguments separator.
0028 SHORT_TOKEN(Plus, '+')         // Addition operator.
0029 SHORT_TOKEN(Minus, '-')        // Subtraction operator.
0030 SHORT_TOKEN(Pipe, '|')         // Bitwise-OR operator.
0031 SHORT_TOKEN(Amp, '&')          // Bitwise-AND operator.
0032 SHORT_TOKEN(Tilde, '~')        // Bitwise-NOT operator.
0033 SHORT_TOKEN(LeftParen, '(')    // Left parenthesis in the script expressions.
0034 SHORT_TOKEN(RightParen, ')')   // Right parenthesis.