Home | History | Annotate | Download | only in antlr3

Lines Matching defs:at

51 need a way to record various locations in the input at a number of points in the
96 to a recognizer at look-ahead position specified by <tt>k</tt>. For
102 <tt>stream.look(k = 1)</tt> is used to retrieve the full object of interest at
177 # used to quickly retreive the object of interest to a recognizer at lookahead
184 # used to retreive the full object of interest at lookahead position specified
191 # returns a value to pass to #rewind at a later time
246 Line 1 is the string "Hey this is the first line\\n". If a character stream is at
335 # :method: at( i )
336 # return the stream symbol at index +i+
337 abstract :at
349 #peek method returns the integer character value at look-ahead position
351 also track various pieces of information such as the line and column numbers at
492 # return the character at look-ahead distance +k+ as an integer. <tt>k = 1</tt> represents
506 # return a substring around the stream cursor at a distance +k+
531 # Returns true if the stream appears to be at the beginning of a new line.
539 # Returns true if the stream appears to be at the end of a new line.
555 # Returns true if the stream appears to be at the beginning of a stream (position = 0).
712 else raise ArgumentError, "could not find an existing file at %p" % @name
912 # token at the specified position is on-channel,
920 # return the type of the on-channel token at look-ahead distance +k+. <tt>k = 1</tt> represents
930 # operates simillarly to #peek, but returns the full token object at look-ahead position +k+
943 # returns the index of the on-channel token at look-ahead position +k+ or nil if no other
960 tk = @tokens.at( cursor += 1 ) or return( cursor )
969 # returns the index of the on-channel token at look-behind position +k+ or nil if no other
983 tk = @tokens.at( cursor -= 1 ) or return( nil )
1057 def at( i )
1058 @tokens.at i