Envision
A visual programming IDE for object-oriented languages
List of all members | Static Public Member Functions
OODebug::CompilerOutputParser Class Reference

Static Public Member Functions

static CompilerFeedback parseJavacErrorFormat (const QString &output)
 Parses the output, which should be in the Javac Error format: "sourcefile:lineno: type: message ^", where ^ is the column identifier and is at the same time the end of one message. More...
 

Member Function Documentation

◆ parseJavacErrorFormat()

CompilerFeedback OODebug::CompilerOutputParser::parseJavacErrorFormat ( const QString &  output)
static

Parses the output, which should be in the Javac Error format: "sourcefile:lineno: type: message ^", where ^ is the column identifier and is at the same time the end of one message.

Javac Error format:

The first group matches the filename The second group matches the lineNumber The third group matches the type (e.g. error, warning, etc.) The fourth group matches the message The fifth group matches the spaces before the ^ which gives the column.

To edit you may want to use this: http://regex101.com/r/cX9lM8/2