Parser.error

Creates an error report and appends it to a list.

  1. void error(Token* token, MID mid, ...)
  2. void error(MID mid, ...)
  3. void error(TypeInfo[] _arguments, va_list _argptr, Token* token, bool endLoc, cstring formatMsg)
    class Parser
    void
    error
    (
    TypeInfo[] _arguments
    ,
    va_list _argptr
    ,
    Token* token
    ,
    bool endLoc
    ,
    )
  4. void error(TypeInfo[] _arguments, va_list _argptr, Token* token, bool endLoc, MID mid)

Parameters

token
Type: Token*

Used to get the location of the error.

endLoc
Type: bool

Get the position of the token's end or start character?

formatMsg
Type: cstring

The parser error message.

Meta