}
}
- class GLXmlParser : Parser
+ class GLXmlParser : XmlParser
{
static readonly Regex ExtensionRegex = new Regex(
@"3DFX|(?!(?<=[1-4])D)[A-Z]{2,}$",
<SubType>Code</SubType>
</Compile>
<Compile Include="Options.cs" />
- <Compile Include="Parser.cs">
+ <Compile Include="XmlParser.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs">
static void Main(string[] args)
{
- CommandLine.Parser.Default.ParseArguments<Options>(args)
+ Parser.Default.ParseArguments<Options>(args)
.WithParsed(result => CLIOptions = result)
.WithNotParsed(error => Environment.Exit(-1));
try
{
- Parser parser = new GLXmlParser { Prefix = CLIOptions.Prefix };
+ XmlParser xmlParser = new GLXmlParser { Prefix = CLIOptions.Prefix };
- var sigs = CLIOptions.InputFiles.Select(h => parser.Parse(h)).ToList();
+ var sigs = CLIOptions.InputFiles.Select(h => xmlParser.Parse(h)).ToList();
// Merge any duplicate enum entries (in case an enum is declared
// in multiple files with different entries in each file).
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
-//
+//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
-//
+//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
namespace OpenTK.Convert
{
// The base class for a parser.
- abstract class Parser
+ abstract class XmlParser
{
// Defines a prefix that should be removed from methods and tokens in the XML files, e.g. "gl", "cl", etc.
public string Prefix { get; set; }