parserl_warning_error.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * 文件名: parser_warning_error.h
  3. * 目标: 记录parser的警告和错误信息
  4. */
  5. #ifndef AFUN_PARSERL_WARNING_ERROR_H
  6. #define AFUN_PARSERL_WARNING_ERROR_H
  7. /* 词法分析器错误和警告信息 */
  8. #define IllegalCharLog "Get illegal characters"
  9. #define IllegalCharConsole HT_aFunGetText(IllegalChar, "Get illegal characters")
  10. #define IncompleteFileLog "Incomplete file" /* 文件不完整 */
  11. #define IncompleteFileConsole HT_aFunGetText(LexicalIncompleteFile, "Incomplete file")
  12. #define IncludeControlCharLog "Include control characters in the text (not recommended)" /* 文本中包含控制符 */
  13. #define IncludeControlCharConsole HT_aFunGetText(LexicalIncludeCTRL, "Include control characters in the text (not recommended)")
  14. /* 语法分析器错误和经过信息 */
  15. #define CodeListStartErrorLog "CodeList did not get a suitable start symbol"
  16. #define CodeListStartErrorConsole HT_aFunGetText(SyntacticCodeListStartError, "CodeList did not get a suitable start symbol")
  17. #define CodeListEndErrorLog "CodeList did not get EOF/NUL with end"
  18. #define CodeListEndErrorConsole HT_aFunGetText(SyntacticCodeListEndError, "CodeList did not get EOF/NUL with end")
  19. #define CodeStartErrorLog "Code did not get a suitable start symbol"
  20. #define CodeStartErrorConsole HT_aFunGetText(SyntacticCodeStartError, "Code did not get a suitable start symbol")
  21. #define CodeBlockEndErrorLog "Code-Block did not get end block symbol with end"
  22. #define CodeBlockEndErrorConsole HT_aFunGetText(SyntacticCodeBolckEndError, "Code-Block did not get end block symbol with end")
  23. #define MakeCodeFailLog "Make code fail (Maybe by prefix)"
  24. #define MakeCodeFailConsole HT_aFunGetText(SyntacticMakeCodeFail, "Make code fail (Maybe by prefix)")
  25. #define MakeCodeFailLog "Make code fail (Maybe by prefix)"
  26. #define MakeCodeFailConsole HT_aFunGetText(SyntacticMakeCodeFail, "Make code fail (Maybe by prefix)")
  27. #define TooDeepLog "Recursion too deep"
  28. #define TooDeepConsole HT_aFunGetText(SyntacticTooDeep, "Recursion too deep")
  29. #define PrefixErrorLog "The system gets the prefix error"
  30. #define PrefixErrorConsole HT_aFunGetText(SyntacticPrefixError, "The system gets the prefix error")
  31. /* 封装Reader的错误 */
  32. #define BOMErrorLog "Parser utf-8 with error BOM"
  33. #define BOMErrorConsole HT_aFunGetText(ReaderBOMError, "Parser utf-8 with error BOM")
  34. #define FileIOErrorLog "File IO error"
  35. #define FileIOErrorConsole HT_aFunGetText(ReaderFileIOError, "File IO error")
  36. #define StdinErrorLog "Stdin error/eof"
  37. #define StdinErrorConsole HT_aFunGetText(ReaderStdinError, "Stdin error/eof")
  38. #define TooMuchInputErrorLog "Too much input for stdin"
  39. #define TooMuchInputErrorConsole HT_aFunGetText(TooMuchInputError, "Too much input for stdin")
  40. #endif //AFUN_PARSERL_WARNING_ERROR_H