static public Lexem GetLexem() { Automate result = new Automate(); var automation = GetAutomate("INT.txt"); result = automation; return(new Lexem(result)); }
static public Automate GetAutomate(string fileName) { Automate automate = new Automate(); using (StreamReader streamReader = new StreamReader(fileName)) { string s = streamReader.ReadToEnd(); automate = JsonConvert.DeserializeObject <Automate>(s); } return(automate); }
public Lexem(Automate automate) { lexems = new Dictionary <string, Automate>(); this.automate = automate; lexems.Add(_class, automate); }