Below is error output of compiler trying to compile this file (as I lexed the multiline comment, but I do not consumed it in parser).
###
aaa
###
Switching between different error outputs is simple as passing --error json
when running from command-line.
This is minimal error output usefull for building from CLI and not thinking about parsing the error:
test.spoon 5:1 - NoMatch TComment
{
"error": {
"type": "NoMatch",
"message": "TComment",
"position": {
"source": "test.spoon",
"line": 5,
"collumn": 1
}
}
}
"error":
"type": "NoMatch"
"message": "TComment"
"position":
"source": "test.spoon"
"line": 5
"collumn": 1
error:
type: NoMatch
message: TComment
position:
source: test.spoon
line: 5
collumn: 1
<error>
<type>NoMatch</type>
<message>TComment</message>
<position>
<source>test.spoon</source>
<line>5</line>
<collumn>1</collumn>
</position>
</error>