Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Public Types | Public Member Functions
Scanner Class Reference

#include <scanner.h>

Data Structures

struct  token_t
 

Public Types

enum  token_id {
  tok_code_set_name , tok_mb_cur_max , tok_mb_cur_min , tok_charmap ,
  tok_collate , tok_ctype , tok_messages , tok_monetary ,
  tok_numeric , tok_time , tok_addr , tok_ident ,
  tok_measure , tok_name , tok_paper , tok_phone ,
  tok_end , tok_upper , tok_lower , tok_digit ,
  tok_space , tok_alpha , tok_graph , tok_print ,
  tok_cntrl , tok_punct , tok_xdigit , tok_blank ,
  tok_tolower , tok_toupper , tok_script , tok_coll_elem ,
  tok_coll_sym , tok_from , tok_xlit_start , tok_xlit_end ,
  tok_reorder , tok_reorder_end , tok_reorder_section , tok_reorder_section_end ,
  tok_order_start , tok_order_end , tok_forward , tok_backward ,
  tok_position , tok_undefined , tok_string , tok_ignore ,
  tok_abs_ellipsis , tok_hex_ellipsis , tok_dec_ellipsis , tok_dbl_ellipsis ,
  tok_width , tok_int_curr_symbol , tok_currency_symbol , tok_mon_decimal_point ,
  tok_mon_thousands_sep , tok_mon_grouping , tok_positive_sign , tok_negative_sign ,
  tok_int_frac_digits , tok_frac_digits , tok_p_cs_precedes , tok_p_sep_by_space ,
  tok_n_cs_precedes , tok_n_sep_by_space , tok_p_sign_posn , tok_n_sign_posn ,
  tok_int_p_cs_precedes , tok_int_n_cs_precedes , tok_int_p_sep_by_space , tok_int_n_sep_by_space ,
  tok_int_p_sign_posn , tok_int_n_sign_posn , tok_decimal_point , tok_thousands_sep ,
  tok_grouping , tok_truename , tok_falsename , tok_abday ,
  tok_day , tok_abmon , tok_mon , tok_d_t_fmt ,
  tok_d_fmt , tok_t_fmt , tok_am_pm , tok_t_fmt_ampm ,
  tok_era , tok_era_d_fmt , tok_era_t_fmt , tok_era_d_t_fmt ,
  tok_alt_digits , tok_yesexpr , tok_noexpr , tok_sym_name ,
  tok_char_value , tok_comment , tok_comment_char , tok_escape_char ,
  tok_copy , tok_include , tok_nl , tok_ndef ,
  tok_end_tokens
}
 

Public Member Functions

 Scanner ()
 
virtual ~Scanner ()
 
token_t next_token ()
 
void open (std::string, char='#', char='\\')
 
void close ()
 
char escape_char () const
 
void ignore_line ()
 
unsigned long convert_escape (const char *, const char **=0, bool=false) const
 

Detailed Description

Definition at line 40 of file scanner.h.

Member Enumeration Documentation

◆ token_id

Enumerator
tok_code_set_name 
tok_mb_cur_max 
tok_mb_cur_min 
tok_charmap 
tok_collate 
tok_ctype 
tok_messages 
tok_monetary 
tok_numeric 
tok_time 
tok_addr 
tok_ident 
tok_measure 
tok_name 
tok_paper 
tok_phone 
tok_end 
tok_upper 
tok_lower 
tok_digit 
tok_space 
tok_alpha 
tok_graph 
tok_print 
tok_cntrl 
tok_punct 
tok_xdigit 
tok_blank 
tok_tolower 
tok_toupper 
tok_script 
tok_coll_elem 
tok_coll_sym 
tok_from 
tok_xlit_start 
tok_xlit_end 
tok_reorder 
tok_reorder_end 
tok_reorder_section 
tok_reorder_section_end 
tok_order_start 
tok_order_end 
tok_forward 
tok_backward 
tok_position 
tok_undefined 
tok_string 
tok_ignore 
tok_abs_ellipsis 
tok_hex_ellipsis 
tok_dec_ellipsis 
tok_dbl_ellipsis 
tok_width 
tok_int_curr_symbol 
tok_currency_symbol 
tok_mon_decimal_point 
tok_mon_thousands_sep 
tok_mon_grouping 
tok_positive_sign 
tok_negative_sign 
tok_int_frac_digits 
tok_frac_digits 
tok_p_cs_precedes 
tok_p_sep_by_space 
tok_n_cs_precedes 
tok_n_sep_by_space 
tok_p_sign_posn 
tok_n_sign_posn 
tok_int_p_cs_precedes 
tok_int_n_cs_precedes 
tok_int_p_sep_by_space 
tok_int_n_sep_by_space 
tok_int_p_sign_posn 
tok_int_n_sign_posn 
tok_decimal_point 
tok_thousands_sep 
tok_grouping 
tok_truename 
tok_falsename 
tok_abday 
tok_day 
tok_abmon 
tok_mon 
tok_d_t_fmt 
tok_d_fmt 
tok_t_fmt 
tok_am_pm 
tok_t_fmt_ampm 
tok_era 
tok_era_d_fmt 
tok_era_t_fmt 
tok_era_d_t_fmt 
tok_alt_digits 
tok_yesexpr 
tok_noexpr 
tok_sym_name 
tok_char_value 
tok_comment 
tok_comment_char 
tok_escape_char 
tok_copy 
tok_include 
tok_nl 
tok_ndef 
tok_end_tokens 

Definition at line 46 of file scanner.h.

Constructor & Destructor Documentation

◆ Scanner()

Scanner::Scanner ( )

Definition at line 107 of file scanner.cpp.

◆ ~Scanner()

Scanner::~Scanner ( )
virtual

Definition at line 115 of file scanner.cpp.

Member Function Documentation

◆ close()

void Scanner::close ( )

Definition at line 168 of file scanner.cpp.

◆ convert_escape()

unsigned long Scanner::convert_escape ( const char *  esc,
const char **  pend = 0,
bool  multi = false 
) const

Definition at line 704 of file scanner.cpp.

◆ escape_char()

char Scanner::escape_char ( ) const

Definition at line 128 of file scanner.cpp.

◆ ignore_line()

void Scanner::ignore_line ( )

Definition at line 134 of file scanner.cpp.

◆ next_token()

Scanner::token_t Scanner::next_token ( )

Definition at line 351 of file scanner.cpp.

◆ open()

void Scanner::open ( std::string  name,
char  cc = '#',
char  ec = '\\' 
)

Definition at line 141 of file scanner.cpp.


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