spudplate
Template scaffolding compiler for spudlang .spud files
Loading...
Searching...
No Matches
spudplate::ParseError Class Reference

Exception thrown when the parser encounters invalid spudlang syntax. More...

#include <parser.h>

Inheritance diagram for spudplate::ParseError:

Public Member Functions

 ParseError (const std::string &message, int line, int column)
 Construct an error tagged with the offending source position.
 
int line () const
 1-based line number where the error occurred.
 
int column () const
 1-based column number where the error occurred.
 

Detailed Description

Exception thrown when the parser encounters invalid spudlang syntax.

Carries the source location (line and column) alongside the error message so callers can produce precise diagnostics.