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)
  4. void error(TypeInfo[] _arguments, va_list _argptr, Token* token, bool endLoc, MID mid)
    class Parser
    void
    error
    (
    TypeInfo[] _arguments
    ,
    va_list _argptr
    ,
    Token* token
    ,
    bool endLoc
    ,
    )

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?

Meta