Esempio n. 1
0
        private C64Studio.Parser.BasicFileParser CreateParser(string BASICDialectName)
        {
            var parser = new C64Studio.Parser.BasicFileParser(new C64Studio.Parser.BasicFileParser.ParserSettings());

            parser.Settings.StripSpaces = false;
            parser.Settings.StripREM    = false;
            parser.SetBasicDialect(ReadDialectFromFile("BASIC Dialects/" + BASICDialectName + ".txt"));

            return(parser);
        }
Esempio n. 2
0
        private C64Studio.Parser.BasicFileParser CreateParser(string BASICDialectName)
        {
            var parser = new C64Studio.Parser.BasicFileParser(new C64Studio.Parser.BasicFileParser.ParserSettings());

            parser.Settings.StripSpaces = false;
            parser.Settings.StripREM    = false;
            if (BASICDialectName == "BASIC V2")
            {
                parser.SetBasicDialect(Dialect.BASICV2);
            }
            else
            {
                string error;
                var    dialect = Dialect.ReadBASICDialect("BASIC Dialects/" + BASICDialectName + ".txt", out error);
                if (dialect == null)
                {
                    Assert.Fail(error);
                }
                parser.SetBasicDialect(dialect);
            }

            return(parser);
        }