Method: LexerIndexedCustomAction#offset

Defined in:
lib/antlr4/atn/LexerAction.rb

#offsetObject

Constructs a new indexed custom action by associating a character offset with a LexerAction.

<p>Note: This class is only required for lexer actions for which LexerAction#isPositionDependent returns true.</p>

the token start index, at which the specified lexer action should be executed. input CharStream.

Parameters:

  • offset

    The offset into the input CharStream, relative to

  • action

    The lexer action to execute at a particular offset in the



288
289
290
# File 'lib/antlr4/atn/LexerAction.rb', line 288

def offset
  @offset
end