Exemplo n.º 1
0
 public Code(string _ArgsTypes, string _Commands, string _Groups)
 {
     autoCompleteTexts = new List <string>();
     groups            = Group.GetGroups(_Groups);
     argsTypes         = ArgsTypes.GetArgsTypes(_ArgsTypes, groups);
     commands          = Command.GetCommands(_Commands, argsTypes, groups);
     labels            = new Label[4];
     labels[0]         = new NormalLabel(groups, "Label");
     labels[1]         = new SubLabel(groups, "Special Label");
     labels[2]         = new PlusLabel(groups, "Special Label");
     labels[3]         = new MinusLabel(groups, "Special Label");
     defines           = new Dictionary <string, Define>();
     errors            = new Dictionary <int, List <Error> >();
     DefaultGroup      = Group.Default;
     ErrorGroup        = Group.FindGroup(groups, "Error");
     CommentGroup      = Group.FindGroup(groups, "Comment");
     DefineGroup       = Group.FindGroup(groups, "Define");
     DefineArgsGroup   = Group.FindGroup(groups, "Define Arg");
 }
Exemplo n.º 2
0
 public abstract bool IsValid(int Line, string[] Lines, NormalLabel Label);