tan  0.0.1
tanlang::TokenizedSourceFile Class Reference

Different from SourceFile, TokenizedSourceFile manages the tokenized text of a source file. More...

#include <tokenized_source_file.h>

Public Member Functions

 TokenizedSourceFile (str filename, vector< Token * > tokens)
 
Tokenget_token (uint32_t loc) const
 
uint32_t get_line (uint32_t loc) const
 
uint32_t get_col (uint32_t loc) const
 
str get_token_str (uint32_t loc) const
 
Tokenget_last_token () const
 
bool is_eof (uint32_t loc) const
 
str get_filename () const
 
str get_src_location_str (uint32_t loc) const
 
SourceFilesrc () const
 
str get_source_code (uint32_t start, uint32_t end) const
 

Detailed Description

Different from SourceFile, TokenizedSourceFile manages the tokenized text of a source file.

Definition at line 10 of file tokenized_source_file.h.


The documentation for this class was generated from the following files: