Example #1
0
 public Language(string?srcFile,
                 UsingList usings,
                 Identifier? @namespace,
                 OptionList?options,
                 CharacterList characters,
                 TokenList tokens,
                 ProductionSection productions,
                 ConflictList?conflicts)
 {
     this.srcFile = srcFile;
     Usings       = usings;
     Namespace    = @namespace ?? new Identifier("Opal");
     this.options = options;
     Characters   = characters;
     this.tokens  = tokens;
     Productions  = productions;
     Conflicts    = conflicts ?? new ConflictList();
 }
Example #2
0
 public static UsingList Add(UsingList list, Using item)
 {
     list.data.Add(item);
     return(list);
 }