1 package ANTLR::Runtime::CharStreamState; 2 3 use Moose; 4 5 # Index into the char stream of next lookahead char 6 has 'p' => ( 7 is => 'rw', 8 isa => 'Int', 9 default => 0, 10 ); 11 12 # What line number is the scanner at before processing buffer[p]? 13 has 'line' => ( 14 is => 'rw', 15 isa => 'Int', 16 default => 0, 17 ); 18 19 # What char position 0..n-1 in line is scanner before processing buffer[p]? 20 has 'char_position_in_line' => ( 21 is => 'rw', 22 isa => 'Int', 23 default => 0, 24 ); 25 26 no Moose; 27 __PACKAGE__->meta->make_immutable(); 28 1; 29