Parser.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. #define REGEX_TRIGRAMS 1
  7. #include "Common.h"
  8. // FORWARD
  9. namespace Js
  10. {
  11. class ScriptContext;
  12. class JavascriptString;
  13. }
  14. // TODO: Get rid of this once we can move PlatformAgnostic back to Common
  15. namespace PlatformAgnostic
  16. {
  17. namespace UnicodeText
  18. {
  19. enum class CharacterClassificationType;
  20. enum CharacterTypeFlags: byte;
  21. }
  22. }
  23. namespace UnifiedRegex {
  24. struct RegexPattern;
  25. struct Program;
  26. template <typename T> class StandardChars;
  27. typedef StandardChars<uint8> UTF8StandardChars;
  28. typedef StandardChars<char16> UnicodeStandardChars;
  29. #if ENABLE_REGEX_CONFIG_OPTIONS
  30. class DebugWriter;
  31. struct RegexStats;
  32. class RegexStatsDatabase;
  33. #endif
  34. }
  35. #include "ParserCommon.h"
  36. #include "Alloc.h"
  37. #include "cmperr.h"
  38. #include "idiom.h"
  39. #include "popcode.h"
  40. #include "ptree.h"
  41. #include "tokens.h"
  42. #include "Hash.h"
  43. #include "CharClassifier.h"
  44. #include "Scan.h"
  45. #include "screrror.h"
  46. #include "rterror.h"
  47. #include "Parse.h"
  48. #include "BackgroundParser.h"