From 6466c06e44684952dd28cd5a6ac3968bdb81646e Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 7 Apr 2022 00:35:59 +0200 Subject: Changed file names for Parser to avoid conflict in MSVC environment --- DefinitionEx/Parser_ss.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 DefinitionEx/Parser_ss.h (limited to 'DefinitionEx/Parser_ss.h') diff --git a/DefinitionEx/Parser_ss.h b/DefinitionEx/Parser_ss.h new file mode 100644 index 0000000..7ddd256 --- /dev/null +++ b/DefinitionEx/Parser_ss.h @@ -0,0 +1,46 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. + + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Declaration of the generic Parser class +*/ + +#ifndef Parser_h +#define Parser_h + +#include "Text.h" +#include "Term.h" + +// +-------------------------------------------------------------------+ + +class Reader; +class Scanner; + +// +-------------------------------------------------------------------+ + +class Parser +{ +public: + Parser(Reader* r = 0); + ~Parser(); + + Term* ParseTerm(); + Term* ParseTermBase(); + Term* ParseTermRest(Term* base); + TermList* ParseTermList(int for_struct); + TermArray* ParseArray(); + TermStruct* ParseStruct(); + +private: + Reader* reader; + Scanner* lexer; +}; + + +#endif // Parser_h -- cgit v1.1