aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/ragel6/inputdata.h
diff options
context:
space:
mode:
authorsmalov <smalov@yandex-team.ru>2022-02-10 16:47:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:36 +0300
commitf70d9720e13aef3a935e3f405b0eac554529e76e (patch)
tree5519c392aebdb16153197de07e4774c0a2be261a /contrib/tools/ragel6/inputdata.h
parent7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (diff)
downloadydb-f70d9720e13aef3a935e3f405b0eac554529e76e.tar.gz
Restoring authorship annotation for <smalov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/ragel6/inputdata.h')
-rw-r--r--contrib/tools/ragel6/inputdata.h206
1 files changed, 103 insertions, 103 deletions
diff --git a/contrib/tools/ragel6/inputdata.h b/contrib/tools/ragel6/inputdata.h
index 09a62c15ac..599d8d0f08 100644
--- a/contrib/tools/ragel6/inputdata.h
+++ b/contrib/tools/ragel6/inputdata.h
@@ -1,106 +1,106 @@
-/*
- * Copyright 2008 Adrian Thurston <thurston@complang.org>
- */
-
-/* This file is part of Ragel.
- *
- * Ragel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+/*
+ * Copyright 2008 Adrian Thurston <thurston@complang.org>
+ */
+
+/* This file is part of Ragel.
*
- * Ragel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Ragel; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef _INPUT_DATA
-#define _INPUT_DATA
-
-#include "gendata.h"
-#include <iostream>
-#include <sstream>
-
-struct Parser;
-struct ParseData;
-
-struct InputItem
-{
- enum Type {
- HostData,
- Write,
- };
-
- Type type;
- std::ostringstream data;
- std::string name;
- ParseData *pd;
- Vector<char *> writeArgs;
-
- InputLoc loc;
-
- InputItem *prev, *next;
-};
-
-struct Parser;
-
-typedef AvlMap<const char*, Parser*, CmpStr> ParserDict;
-typedef AvlMapEl<const char*, Parser*> ParserDictEl;
-typedef DList<Parser> ParserList;
-typedef DList<InputItem> InputItemList;
-typedef Vector<const char *> ArgsVector;
-
-struct InputData
-{
- InputData() :
- inputFileName(0),
- outputFileName(0),
- inStream(0),
- outStream(0),
- outFilter(0),
- dotGenParser(0)
- {}
-
- /* The name of the root section, this does not change during an include. */
- const char *inputFileName;
- const char *outputFileName;
-
- /* Io globals. */
- std::istream *inStream;
- std::ostream *outStream;
- output_filter *outFilter;
-
- Parser *dotGenParser;
-
- ParserDict parserDict;
- ParserList parserList;
- InputItemList inputItems;
-
- ArgsVector includePaths;
-
- void verifyWritesHaveData();
-
- void writeOutput();
- void makeOutputStream();
- void openOutput();
- void generateReduced();
- void prepareMachineGen();
- void terminateAllParsers();
-
- void cdDefaultFileName( const char *inputFile );
+ * Ragel is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Ragel is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Ragel; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _INPUT_DATA
+#define _INPUT_DATA
+
+#include "gendata.h"
+#include <iostream>
+#include <sstream>
+
+struct Parser;
+struct ParseData;
+
+struct InputItem
+{
+ enum Type {
+ HostData,
+ Write,
+ };
+
+ Type type;
+ std::ostringstream data;
+ std::string name;
+ ParseData *pd;
+ Vector<char *> writeArgs;
+
+ InputLoc loc;
+
+ InputItem *prev, *next;
+};
+
+struct Parser;
+
+typedef AvlMap<const char*, Parser*, CmpStr> ParserDict;
+typedef AvlMapEl<const char*, Parser*> ParserDictEl;
+typedef DList<Parser> ParserList;
+typedef DList<InputItem> InputItemList;
+typedef Vector<const char *> ArgsVector;
+
+struct InputData
+{
+ InputData() :
+ inputFileName(0),
+ outputFileName(0),
+ inStream(0),
+ outStream(0),
+ outFilter(0),
+ dotGenParser(0)
+ {}
+
+ /* The name of the root section, this does not change during an include. */
+ const char *inputFileName;
+ const char *outputFileName;
+
+ /* Io globals. */
+ std::istream *inStream;
+ std::ostream *outStream;
+ output_filter *outFilter;
+
+ Parser *dotGenParser;
+
+ ParserDict parserDict;
+ ParserList parserList;
+ InputItemList inputItems;
+
+ ArgsVector includePaths;
+
+ void verifyWritesHaveData();
+
+ void writeOutput();
+ void makeOutputStream();
+ void openOutput();
+ void generateReduced();
+ void prepareMachineGen();
+ void terminateAllParsers();
+
+ void cdDefaultFileName( const char *inputFile );
void goDefaultFileName( const char *inputFile );
- void javaDefaultFileName( const char *inputFile );
- void rubyDefaultFileName( const char *inputFile );
- void csharpDefaultFileName( const char *inputFile );
+ void javaDefaultFileName( const char *inputFile );
+ void rubyDefaultFileName( const char *inputFile );
+ void csharpDefaultFileName( const char *inputFile );
void ocamlDefaultFileName( const char *inputFile );
-
- void writeLanguage( std::ostream &out );
- void writeXML( std::ostream &out );
-};
-
-#endif
+
+ void writeLanguage( std::ostream &out );
+ void writeXML( std::ostream &out );
+};
+
+#endif