ResourceScriptTokenList.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- ResourceScriptTokenList.h -------------------------------*- C++-*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===---------------------------------------------------------------------===//
  13. //
  14. // This is a part of llvm-rc tokens header. It lists all the possible tokens
  15. // that might occur in a correct .rc script.
  16. //
  17. //===---------------------------------------------------------------------===//
  18. // Long tokens. They might consist of more than one character.
  19. TOKEN(Invalid) // Invalid token. Should not occur in a valid script.
  20. TOKEN(Int) // Integer (decimal, octal or hexadecimal).
  21. TOKEN(String) // String value.
  22. TOKEN(Identifier) // Script identifier (resource name or type).
  23. // Short tokens. They usually consist of exactly one character.
  24. // The definitions are of the form SHORT_TOKEN(TokenName, TokenChar).
  25. // TokenChar is the one-character token representation occuring in the correct
  26. // .rc scripts.
  27. SHORT_TOKEN(BlockBegin, '{') // Start of the script block; can also be BEGIN.
  28. SHORT_TOKEN(BlockEnd, '}') // End of the block; can also be END.
  29. SHORT_TOKEN(Comma, ',') // Comma - resource arguments separator.
  30. SHORT_TOKEN(Plus, '+') // Addition operator.
  31. SHORT_TOKEN(Minus, '-') // Subtraction operator.
  32. SHORT_TOKEN(Pipe, '|') // Bitwise-OR operator.
  33. SHORT_TOKEN(Amp, '&') // Bitwise-AND operator.
  34. SHORT_TOKEN(Tilde, '~') // Bitwise-NOT operator.
  35. SHORT_TOKEN(LeftParen, '(') // Left parenthesis in the script expressions.
  36. SHORT_TOKEN(RightParen, ')') // Right parenthesis.
  37. #ifdef __GNUC__
  38. #pragma GCC diagnostic pop
  39. #endif