예제 #1
0
        private static List <CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return(null);
            }

            return(syntaxErrors.Select(e => new CompileError()
            {
                Text = TranslateMessage(e)
            }).ToList());
        }
예제 #2
0
    }//method

    public void CopyMessages(ParserMessageList others, SourceLocation baseLocation, string messagePrefix) {
      foreach(var other in others) 
        this.ParserMessages.Add(new ParserMessage(other.Level, baseLocation + other.Location, messagePrefix + other.Message, other.ParserState)); 
    }//
예제 #3
0
파일: Compiler.cs 프로젝트: ondrej11/o106
        private static List<CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return null;
            }

            return syntaxErrors.Select(e => new CompileError()
            {
                Text = TranslateMessage(e)
            }).ToList();
        }