/// <inheritdoc /> public InvalidPathSyntaxError(Tokenizer.CharacterLocation location, string token) { Location = location; Token = token; HelpText = $"line:char '{Location.Line}:{Location.Character}' - The path '{Token}' is not valid. Please see documentation for examples of valid paths."; }
internal IndexedParseException(Tokenizer.CharacterLocation location, string message, params object[] replacements) : this(message, replacements) { LineNumber = location.Line; CharacterOnLine = location.Character; }
/// <summary> /// Initializes a new instance of the <see cref="MorestachioSyntaxError"/> class. /// </summary> /// <param name="location">The location.</param> public MorestachioSyntaxError(Tokenizer.CharacterLocation location, string operation, string tokenOccured, string syntaxExpected, string extra = null) { Location = location; HelpText = $"line:char '{Location.Line}:{Location.Character}' - The syntax to {operation} the '{tokenOccured}' block should be: '{syntaxExpected}'.{extra}"; }
public TokenPair(TokenType type, string value, Tokenizer.CharacterLocation tokenLocation) { Type = type; Value = value; TokenLocation = tokenLocation; }
/// <summary> /// Initializes a new instance of the <see cref="MorestachioSyntaxError"/> class. /// </summary> /// <param name="location">The location.</param> public MorestachioUnopendScopeError(Tokenizer.CharacterLocation location, string tokenOccured, string syntaxExpected, string extra = null) { Location = location; HelpText = $"line:char '{Location.Line}:{Location.Character}' - An '{tokenOccured}' block is being closed, but no corresponding opening element '{syntaxExpected}' was detected.{extra}"; }