PostParseEventArgs.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /// Spart License (zlib/png)
  2. ///
  3. ///
  4. /// Copyright (c) 2003 Jonathan de Halleux
  5. ///
  6. /// This software is provided 'as-is', without any express or implied warranty.
  7. /// In no event will the authors be held liable for any damages arising from
  8. /// the use of this software.
  9. ///
  10. /// Permission is granted to anyone to use this software for any purpose,
  11. /// including commercial applications, and to alter it and redistribute it
  12. /// freely, subject to the following restrictions:
  13. ///
  14. /// 1. The origin of this software must not be misrepresented; you must not
  15. /// claim that you wrote the original software. If you use this software in a
  16. /// product, an acknowledgment in the product documentation would be
  17. /// appreciated but is not required.
  18. ///
  19. /// 2. Altered source versions must be plainly marked as such, and must not be
  20. /// misrepresented as being the original software.
  21. ///
  22. /// 3. This notice may not be removed or altered from any source distribution.
  23. ///
  24. /// Author: Jonathan de Halleuxusing System;
  25. namespace Spart.Parsers.NonTerminal
  26. {
  27. using System;
  28. using Spart.Scanners;
  29. public class PostParseEventArgs : EventArgs
  30. {
  31. private ParserMatch m_Match;
  32. private NonTerminalParser m_Parser;
  33. private IScanner m_Scanner;
  34. public PostParseEventArgs(ParserMatch match, NonTerminalParser parser, IScanner scanner)
  35. {
  36. if (match == null)
  37. throw new ArgumentNullException("match");
  38. if (parser == null)
  39. throw new ArgumentNullException("parser");
  40. if (scanner == null)
  41. throw new ArgumentNullException("scanner");
  42. m_Match = match;
  43. m_Parser = parser;
  44. m_Scanner = scanner;
  45. }
  46. public ParserMatch Match
  47. {
  48. get
  49. {
  50. return m_Match;
  51. }
  52. }
  53. public NonTerminalParser Parser
  54. {
  55. get
  56. {
  57. return m_Parser;
  58. }
  59. }
  60. public IScanner Scanner
  61. {
  62. get
  63. {
  64. return m_Scanner;
  65. }
  66. }
  67. }
  68. }