Ejemplo n.º 1
0
        private static List <CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return(null);
            }

            return(syntaxErrors.Select(e => new CompileError()
            {
                Text = TranslateMessage(e)
            }).ToList());
        }
Ejemplo n.º 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)); 
    }//
Ejemplo n.º 3
0
        private static List<CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return null;
            }

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