public GlifProgram(GlifContext context, string type, string name, GlifStatement statement) : base(context) { Type = type; Name = name; Statement = statement; }
public GlifVertexParamsStatement(GlifContext context, string from, string to, GlifParameter parameterList) : base(context) { From = from; To = to; Parameters = parameterList; }
public GlifParameterList(GlifContext context, GlifParameter currentParameter, GlifParameter nextParameter) : base(context,currentParameter.Attribute,currentParameter.Value) { _current = currentParameter; _next = nextParameter; }
public GlifInterpreter(string filename) { var streamReader = new StreamReader(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + "\\" + filename); _fileText = streamReader.ReadToEnd(); streamReader.Close(); var currentAssembly = Assembly.GetExecutingAssembly(); var stream = currentAssembly.GetManifestResourceStream("SP2.Glif.Interpreter.res.glifgrammar.cgt"); if (stream != null) { var binaryReader = new BinaryReader(stream); _grammar = new Grammar(binaryReader); } else { throw new FileNotFoundException("Grammar file not found!"); } _parser = new Parser(new StringReader(_fileText), _grammar) {TrimReductions = true}; _context = new GlifContext(_parser); }
public GlifParameter(GlifContext context, GlifAttribute attribute, GlifValue value) : base(context) { Attribute = attribute; Value = value; }
public GlifAttribute(GlifContext context, string name) : base(context) { Name = name; }
public GlifValue(GlifContext context, string value) : base(context) { Value = value; }
public GlifStatementList(GlifContext context, GlifStatement currentStatement, GlifStatement nextStatement) : base(context) { _current = currentStatement; _next = nextStatement; }
public GlifNextNodeStatement(GlifContext context, string from, string to) : base(context) { From = from; To = to; }
public GlifStatement(GlifContext context) : base(context) { }