Ignore:
Timestamp:
Feb 14, 2017, 2:54:51 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
138e29e
Parents:
eafb094
Message:

Filename and linenumber handling for parsing errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    reafb094 r294647b  
    2323#include <iostream>
    2424
     25#include "utility.h"
     26
    2527class SemanticError : public std::exception {
    2628  public:
     
    3537        void print( std::ostream &os );
    3638
     39        void set_location( const CodeLocation& location );
    3740        // constructs an exception using the given message and the printed
    3841        // representation of the obj (T must have a print method)
    3942  private:
    4043        std::list< std::string > errors;
     44        CodeLocation location;
    4145};
    4246
Note: See TracChangeset for help on using the changeset viewer.