Class: Parser::Lexer Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
line 3 "lib/parser/lexer.rl"
=== BEFORE YOU START ===
Read the Ruby Hacking Guide chapter 11, available in English at http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/
Remember two things about Ragel scanners:
1) Longest match wins.
2) If two matches have the same length, the first in source code wins.
General rules of making Ragel and Bison happy:
p
(position) and@te
contain the index of the character they're pointing to ("current"), plus one.@ts
contains the index of the corresponding character. The code for extracting matched token is:@source_buffer.slice(@ts...@te)
If your input is
foooooooobar
and the rule is:'f' 'o'+
the result will be:
foooooooobar
^ ts=0 ^ p=te=9
A Ragel lexer action should not emit more than one token, unless you know what you are doing.
All Ragel commands (fnext, fgoto, ...) end with a semicolon.
If an action emits the token and transitions to another state, use these Ragel commands:
emit($whatever) fnext $next_state; fbreak;
If you perform fgoto
in an action which does not emit a token nor
rewinds the stream pointer, the parser's side-effectful,
context-sensitive lookahead actions will break in a hard to detect
and debug way.
If an action does not emit a token:
fgoto $next_state;
If an action features lookbehind, i.e. matches characters with the intent of passing them to another action:
p = @ts - 1 fgoto $next_state;
or, if the lookbehind consists of a single character:
fhold; fgoto $next_state;
- Ragel merges actions. So, if you have
e_lparen = '(' %act
andc_lparen = '('
and a lexer actione_lparen | c_lparen
, the result will invoke the actionact
.
e_something stands for "something with embedded action".
EOF is explicit and is matched by
c_eof
. If you want to introspect the state of the lexer, add this rule to the state:c_eof => do_eof;
If you proceed past EOF, the lexer will complain:
NoMethodError: undefined method `ord' for nil:NilClass
source://parser//lib/parser/lexer-F1.rb#82
Defined Under Namespace
Classes: Dedenter, Literal, StackState
Constant Summary collapse
- ESCAPE_WHITESPACE =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#14869
T.let(T.unsafe(nil), Hash)
- KEYWORDS =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#14855
T.let(T.unsafe(nil), Hash)
- KEYWORDS_BEGIN =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#14862
T.let(T.unsafe(nil), Hash)
- LEX_STATES =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8371
T.let(T.unsafe(nil), Hash)
- PUNCTUATION =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
Mapping of strings to parser tokens.
source://parser//lib/parser/lexer-F1.rb#14829
T.let(T.unsafe(nil), Hash)
- PUNCTUATION_BEGIN =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#14849
T.let(T.unsafe(nil), Hash)
Class Method Summary collapse
-
.lex_en_expr_arg ⇒ Object
private
Returns the value of attribute lex_en_expr_arg.
-
.lex_en_expr_arg=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_arg.
-
.lex_en_expr_beg ⇒ Object
private
Returns the value of attribute lex_en_expr_beg.
-
.lex_en_expr_beg=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_beg.
-
.lex_en_expr_cmdarg ⇒ Object
private
Returns the value of attribute lex_en_expr_cmdarg.
-
.lex_en_expr_cmdarg=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_cmdarg.
-
.lex_en_expr_dot ⇒ Object
private
Returns the value of attribute lex_en_expr_dot.
-
.lex_en_expr_dot=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_dot.
-
.lex_en_expr_end ⇒ Object
private
Returns the value of attribute lex_en_expr_end.
-
.lex_en_expr_end=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_end.
-
.lex_en_expr_endarg ⇒ Object
private
Returns the value of attribute lex_en_expr_endarg.
-
.lex_en_expr_endarg=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_endarg.
-
.lex_en_expr_endfn ⇒ Object
private
Returns the value of attribute lex_en_expr_endfn.
-
.lex_en_expr_endfn=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_endfn.
-
.lex_en_expr_fname ⇒ Object
private
Returns the value of attribute lex_en_expr_fname.
-
.lex_en_expr_fname=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_fname.
-
.lex_en_expr_labelarg ⇒ Object
private
Returns the value of attribute lex_en_expr_labelarg.
-
.lex_en_expr_labelarg=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_labelarg.
-
.lex_en_expr_mid ⇒ Object
private
Returns the value of attribute lex_en_expr_mid.
-
.lex_en_expr_mid=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_mid.
-
.lex_en_expr_value ⇒ Object
private
Returns the value of attribute lex_en_expr_value.
-
.lex_en_expr_value=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_value.
-
.lex_en_expr_variable ⇒ Object
private
Returns the value of attribute lex_en_expr_variable.
-
.lex_en_expr_variable=(_arg0) ⇒ Object
private
Sets the attribute lex_en_expr_variable.
-
.lex_en_inside_string ⇒ Object
private
Returns the value of attribute lex_en_inside_string.
-
.lex_en_inside_string=(_arg0) ⇒ Object
private
Sets the attribute lex_en_inside_string.
-
.lex_en_leading_dot ⇒ Object
private
Returns the value of attribute lex_en_leading_dot.
-
.lex_en_leading_dot=(_arg0) ⇒ Object
private
Sets the attribute lex_en_leading_dot.
-
.lex_en_line_begin ⇒ Object
private
Returns the value of attribute lex_en_line_begin.
-
.lex_en_line_begin=(_arg0) ⇒ Object
private
Sets the attribute lex_en_line_begin.
-
.lex_en_line_comment ⇒ Object
private
Returns the value of attribute lex_en_line_comment.
-
.lex_en_line_comment=(_arg0) ⇒ Object
private
Sets the attribute lex_en_line_comment.
-
.lex_error ⇒ Object
private
Returns the value of attribute lex_error.
-
.lex_error=(_arg0) ⇒ Object
private
Sets the attribute lex_error.
-
.lex_start ⇒ Object
private
Returns the value of attribute lex_start.
-
.lex_start=(_arg0) ⇒ Object
private
Sets the attribute lex_start.
Instance Method Summary collapse
-
#advance ⇒ Object
private
Return next token: [type, value].
-
#cmdarg ⇒ Object
private
Returns the value of attribute cmdarg.
-
#cmdarg=(_arg0) ⇒ Object
private
Sets the attribute cmdarg.
-
#cmdarg_stack ⇒ Object
private
Returns the value of attribute cmdarg_stack.
-
#command_start ⇒ Object
private
Returns the value of attribute command_start.
-
#command_start=(_arg0) ⇒ Object
private
Sets the attribute command_start.
-
#comments ⇒ Object
private
Returns the value of attribute comments.
-
#comments=(_arg0) ⇒ Object
private
Sets the attribute comments.
-
#cond ⇒ Object
private
Returns the value of attribute cond.
-
#cond=(_arg0) ⇒ Object
private
Sets the attribute cond.
-
#cond_stack ⇒ Object
private
Returns the value of attribute cond_stack.
-
#construct_float(chars) ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8281.
-
#context ⇒ Object
private
Returns the value of attribute context.
-
#context=(_arg0) ⇒ Object
private
Sets the attribute context.
-
#dedent_level ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8414.
-
#diagnostics ⇒ Object
private
Returns the value of attribute diagnostics.
-
#diagnostics=(_arg0) ⇒ Object
private
Sets the attribute diagnostics.
-
#encoding ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8367.
-
#force_utf32 ⇒ Object
private
Returns the value of attribute force_utf32.
-
#force_utf32=(_arg0) ⇒ Object
private
Sets the attribute force_utf32.
-
#initialize(version) ⇒ Lexer
constructor
private
source://parser//lib/parser/lexer-F1.rb#8250.
-
#lambda_stack ⇒ Object
private
Returns the value of attribute lambda_stack.
-
#paren_nest ⇒ Object
private
Returns the value of attribute paren_nest.
-
#pop_cmdarg ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8401.
-
#pop_cond ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8410.
-
#push_cmdarg ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8396.
-
#push_cond ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8405.
-
#reset(reset_state = T.unsafe(nil)) ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8290.
-
#source_buffer ⇒ Object
private
%.
-
#source_buffer=(source_buffer) ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8343.
-
#state ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8388.
-
#state=(state) ⇒ Object
private
source://parser//lib/parser/lexer-F1.rb#8392.
-
#static_env ⇒ Object
private
Returns the value of attribute static_env.
-
#static_env=(_arg0) ⇒ Object
private
Sets the attribute static_env.
-
#tokens ⇒ Object
private
Returns the value of attribute tokens.
-
#tokens=(_arg0) ⇒ Object
private
Sets the attribute tokens.
-
#version ⇒ Object
private
Returns the value of attribute version.
Constructor Details
#initialize(version) ⇒ Lexer
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8250
1931 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1931 def initialize(version); end |
Class Method Details
.lex_en_expr_arg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_arg.
source://parser//lib/parser/lexer-F1.rb#8186
2180 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2180 def lex_en_expr_arg; end |
.lex_en_expr_arg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_arg
source://parser//lib/parser/lexer-F1.rb#8186
2187 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2187 def lex_en_expr_arg=(_arg0); end |
.lex_en_expr_beg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_beg.
source://parser//lib/parser/lexer-F1.rb#8202
2192 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2192 def lex_en_expr_beg; end |
.lex_en_expr_beg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_beg
source://parser//lib/parser/lexer-F1.rb#8202
2199 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2199 def lex_en_expr_beg=(_arg0); end |
.lex_en_expr_cmdarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_cmdarg.
source://parser//lib/parser/lexer-F1.rb#8190
2204 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2204 def lex_en_expr_cmdarg; end |
.lex_en_expr_cmdarg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_cmdarg
source://parser//lib/parser/lexer-F1.rb#8190
2211 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2211 def lex_en_expr_cmdarg=(_arg0); end |
.lex_en_expr_dot ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_dot.
source://parser//lib/parser/lexer-F1.rb#8182
2216 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2216 def lex_en_expr_dot; end |
.lex_en_expr_dot=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_dot
source://parser//lib/parser/lexer-F1.rb#8182
2223 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2223 def lex_en_expr_dot=(_arg0); end |
.lex_en_expr_end ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_end.
source://parser//lib/parser/lexer-F1.rb#8214
2228 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2228 def lex_en_expr_end; end |
.lex_en_expr_end=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_end
source://parser//lib/parser/lexer-F1.rb#8214
2235 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2235 def lex_en_expr_end=(_arg0); end |
.lex_en_expr_endarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_endarg.
source://parser//lib/parser/lexer-F1.rb#8194
2240 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2240 def lex_en_expr_endarg; end |
.lex_en_expr_endarg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_endarg
source://parser//lib/parser/lexer-F1.rb#8194
2247 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2247 def lex_en_expr_endarg=(_arg0); end |
.lex_en_expr_endfn ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_endfn.
source://parser//lib/parser/lexer-F1.rb#8178
2252 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2252 def lex_en_expr_endfn; end |
.lex_en_expr_endfn=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_endfn
source://parser//lib/parser/lexer-F1.rb#8178
2259 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2259 def lex_en_expr_endfn=(_arg0); end |
.lex_en_expr_fname ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_fname.
source://parser//lib/parser/lexer-F1.rb#8174
2264 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2264 def lex_en_expr_fname; end |
.lex_en_expr_fname=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_fname
source://parser//lib/parser/lexer-F1.rb#8174
2271 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2271 def lex_en_expr_fname=(_arg0); end |
.lex_en_expr_labelarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_labelarg.
source://parser//lib/parser/lexer-F1.rb#8206
2276 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2276 def lex_en_expr_labelarg; end |
.lex_en_expr_labelarg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_labelarg
source://parser//lib/parser/lexer-F1.rb#8206
2283 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2283 def lex_en_expr_labelarg=(_arg0); end |
.lex_en_expr_mid ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_mid.
source://parser//lib/parser/lexer-F1.rb#8198
2288 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2288 def lex_en_expr_mid; end |
.lex_en_expr_mid=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_mid
source://parser//lib/parser/lexer-F1.rb#8198
2295 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2295 def lex_en_expr_mid=(_arg0); end |
.lex_en_expr_value ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_value.
source://parser//lib/parser/lexer-F1.rb#8210
2300 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2300 def lex_en_expr_value; end |
.lex_en_expr_value=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_value
source://parser//lib/parser/lexer-F1.rb#8210
2307 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2307 def lex_en_expr_value=(_arg0); end |
.lex_en_expr_variable ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_expr_variable.
source://parser//lib/parser/lexer-F1.rb#8170
2312 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2312 def lex_en_expr_variable; end |
.lex_en_expr_variable=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_expr_variable
source://parser//lib/parser/lexer-F1.rb#8170
2319 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2319 def lex_en_expr_variable=(_arg0); end |
.lex_en_inside_string ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_inside_string.
source://parser//lib/parser/lexer-F1.rb#8230
2324 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2324 def lex_en_inside_string; end |
.lex_en_inside_string=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_inside_string
source://parser//lib/parser/lexer-F1.rb#8230
2331 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2331 def lex_en_inside_string=(_arg0); end |
.lex_en_leading_dot ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_leading_dot.
source://parser//lib/parser/lexer-F1.rb#8218
2336 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2336 def lex_en_leading_dot; end |
.lex_en_leading_dot=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_leading_dot
source://parser//lib/parser/lexer-F1.rb#8218
2343 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2343 def lex_en_leading_dot=(_arg0); end |
.lex_en_line_begin ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_line_begin.
source://parser//lib/parser/lexer-F1.rb#8226
2348 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2348 def lex_en_line_begin; end |
.lex_en_line_begin=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_line_begin
source://parser//lib/parser/lexer-F1.rb#8226
2355 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2355 def lex_en_line_begin=(_arg0); end |
.lex_en_line_comment ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_line_comment.
source://parser//lib/parser/lexer-F1.rb#8222
2360 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2360 def lex_en_line_comment; end |
.lex_en_line_comment=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_line_comment
source://parser//lib/parser/lexer-F1.rb#8222
2367 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2367 def lex_en_line_comment=(_arg0); end |
.lex_error ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_error.
source://parser//lib/parser/lexer-F1.rb#8165
2372 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2372 def lex_error; end |
.lex_error=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_error
source://parser//lib/parser/lexer-F1.rb#8165
2379 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2379 def lex_error=(_arg0); end |
.lex_start ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_start.
source://parser//lib/parser/lexer-F1.rb#8161
2384 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2384 def lex_start; end |
.lex_start=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_start
source://parser//lib/parser/lexer-F1.rb#8161
2391 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2391 def lex_start=(_arg0); end |
Instance Method Details
#advance ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Return next token: [type, value].
source://parser//lib/parser/lexer-F1.rb#8419
1936 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1936 def advance; end |
#cmdarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute cmdarg.
source://parser//lib/parser/lexer-F1.rb#8244
1941 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1941 def cmdarg; end |
#cmdarg=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute cmdarg
source://parser//lib/parser/lexer-F1.rb#8244
1948 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1948 def cmdarg=(_arg0); end |
#cmdarg_stack ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute cmdarg_stack.
source://parser//lib/parser/lexer-F1.rb#8248
1953 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1953 def cmdarg_stack; end |
#command_start ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute command_start.
source://parser//lib/parser/lexer-F1.rb#8244
1958 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1958 def command_start; end |
#command_start=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute command_start
source://parser//lib/parser/lexer-F1.rb#8244
1965 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1965 def command_start=(_arg0); end |
#comments ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute comments.
source://parser//lib/parser/lexer-F1.rb#8246
1970 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1970 def comments; end |
#comments=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute comments
source://parser//lib/parser/lexer-F1.rb#8246
1977 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1977 def comments=(_arg0); end |
#cond ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute cond.
source://parser//lib/parser/lexer-F1.rb#8244
1982 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1982 def cond; end |
#cond=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute cond
source://parser//lib/parser/lexer-F1.rb#8244
1989 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1989 def cond=(_arg0); end |
#cond_stack ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute cond_stack.
source://parser//lib/parser/lexer-F1.rb#8248
1994 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1994 def cond_stack; end |
#construct_float(chars) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8281
1997 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1997 def construct_float(chars); end |
#context ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute context.
source://parser//lib/parser/lexer-F1.rb#8244
2002 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2002 def context; end |
#context=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute context
source://parser//lib/parser/lexer-F1.rb#8244
2009 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2009 def context=(_arg0); end |
#dedent_level ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8414
2012 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2012 def dedent_level; end |
#diagnostics ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute diagnostics.
source://parser//lib/parser/lexer-F1.rb#8240
2017 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2017 def diagnostics; end |
#diagnostics=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute diagnostics
source://parser//lib/parser/lexer-F1.rb#8240
2024 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2024 def diagnostics=(_arg0); end |
#encoding ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8367
2027 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2027 def encoding; end |
#force_utf32 ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute force_utf32.
source://parser//lib/parser/lexer-F1.rb#8242
2032 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2032 def force_utf32; end |
#force_utf32=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute force_utf32
source://parser//lib/parser/lexer-F1.rb#8242
2039 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2039 def force_utf32=(_arg0); end |
#lambda_stack ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lambda_stack.
source://parser//lib/parser/lexer-F1.rb#8248
2044 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2044 def lambda_stack; end |
#paren_nest ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute paren_nest.
source://parser//lib/parser/lexer-F1.rb#8248
2049 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2049 def paren_nest; end |
#pop_cmdarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8401
2052 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2052 def pop_cmdarg; end |
#pop_cond ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8410
2055 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2055 def pop_cond; end |
#push_cmdarg ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8396
2058 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2058 def push_cmdarg; end |
#push_cond ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8405
2061 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2061 def push_cond; end |
#reset(reset_state = T.unsafe(nil)) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8290
2064 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2064 def reset(reset_state = T.unsafe(nil)); end |
#source_buffer ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
%
source://parser//lib/parser/lexer-F1.rb#8238
2069 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2069 def source_buffer; end |
#source_buffer=(source_buffer) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8343
2072 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2072 def source_buffer=(source_buffer); end |
#state ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8388
2075 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2075 def state; end |
#state=(state) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-F1.rb#8392
2078 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2078 def state=(state); end |
#static_env ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute static_env.
source://parser//lib/parser/lexer-F1.rb#8241
2083 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2083 def static_env; end |
#static_env=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute static_env
source://parser//lib/parser/lexer-F1.rb#8241
2090 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2090 def static_env=(_arg0); end |
#tokens ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute tokens.
source://parser//lib/parser/lexer-F1.rb#8246
2095 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2095 def tokens; end |
#tokens=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute tokens
source://parser//lib/parser/lexer-F1.rb#8246
2102 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2102 def tokens=(_arg0); end |
#version ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute version.
source://parser//lib/parser/lexer-F1.rb#8248
2107 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2107 def version; end |