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
1925 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1925 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
2174 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2174 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
2181 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2181 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
2186 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2186 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
2193 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2193 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
2198 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2198 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
2205 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2205 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
2210 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2210 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
2217 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2217 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
2222 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2222 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
2229 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2229 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
2234 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2234 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
2241 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2241 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
2246 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2246 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
2253 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2253 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
2258 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2258 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
2265 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2265 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
2270 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2270 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
2277 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2277 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
2282 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2282 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
2289 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2289 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
2294 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2294 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
2301 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2301 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
2306 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2306 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
2313 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2313 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
2318 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2318 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
2325 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2325 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
2330 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2330 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
2337 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2337 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
2342 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2342 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
2349 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2349 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
2354 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2354 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
2361 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2361 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
2366 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2366 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
2373 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2373 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
2378 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2378 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
2385 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2385 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
1930 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1930 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
1935 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1935 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
1942 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1942 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
1947 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1947 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
1952 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1952 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
1959 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1959 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
1964 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1964 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
1971 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1971 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
1976 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1976 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
1983 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1983 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
1988 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1988 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
1991 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1991 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
1996 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1996 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
2003 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2003 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
2006 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2006 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
2011 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2011 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
2018 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2018 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
2021 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2021 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
2026 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2026 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
2033 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2033 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
2038 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2038 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
2043 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2043 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
2046 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2046 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
2049 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2049 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
2052 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2052 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
2055 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2055 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
2058 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2058 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
2063 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2063 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
2066 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2066 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
2069 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2069 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
2072 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2072 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
2077 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2077 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
2084 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2084 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
2089 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2089 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
2096 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2096 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
2101 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2101 def version; end |