種類
ライブラリ
- ビルトイン (698)
-
cgi
/ html (528) - cmath (120)
-
json
/ add / complex (22) - matrix (22)
-
rdoc
/ parser / ruby (11) -
ripper
/ lexer (55) -
rubygems
/ exceptions (22) - socket (22)
クラス
モジュール
-
CGI
:: HtmlExtension (517) - CMath (120)
- Kernel (22)
-
Socket
:: Constants (11)
キーワード
- * (11)
- ** (11)
- + (11)
- - (11)
- -@ (11)
-
/ (11) - < (11)
- <= (11)
- <=> (5)
- == (11)
- > (11)
- >= (11)
- Complex (33)
- DependencyRemovalException (11)
- EndOfYAMLException (11)
- HtmlExtension (11)
- I (11)
-
IFF
_ SIMPLEX (22) - Lexer (11)
- RubyLex (11)
- SignalException (11)
- a (22)
- abs (11)
- abs2 (11)
- acos (6)
- acosh (6)
- angle (11)
- arg (11)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- base (11)
- between? (11)
- blockquote (22)
- cbrt (6)
- checkbox (22)
-
checkbox
_ group (22) - clamp (11)
- coerce (11)
- conj (11)
- conjugate (11)
- cos (6)
- cosh (6)
- denominator (11)
- exp (6)
- fdiv (28)
-
file
_ field (22) - finite? (8)
- form (44)
-
here
_ document (11) -
heredoc
_ identifier (11) -
heredoc
_ restore (11) - hidden (22)
- html (22)
- i (11)
- imag (11)
- imaginary (11)
- img (22)
- infinite? (8)
- inspect (11)
-
irb
/ ruby-lex (11) -
irb
/ slex (6) -
json
/ add / complex (11) -
json
_ create (11) -
lex
_ get _ str (11) -
lex
_ getline (11) - log (12)
- log10 (6)
- log2 (6)
- magnitude (11)
-
marshal
_ dump (11) -
multipart
_ form (44) - new (33)
- numerator (11)
- parse (11)
-
parse
_ string (11) -
password
_ field (22) - phase (11)
- polar (22)
- quo (22)
-
radio
_ group (22) - rationalize (22)
-
rb
_ reserved _ word (11) - real (11)
- real? (11)
- rect (22)
- rectangular (22)
- reset (22)
-
ripper
/ lexer (11) -
scrolling
_ list (22) - signm (11)
- signo (11)
- sin (6)
- sinh (6)
- sqrt (6)
- submit (22)
- tan (6)
- tanh (6)
-
text
_ field (22) - textarea (22)
-
to
_ c (44) -
to
_ f (11) -
to
_ i (11) -
to
_ json (11) -
to
_ r (11) -
to
_ s (11) - tokenize (11)
- tr (11)
- trace (11)
- yylex (11)
- 字句構造 (11)
検索結果
先頭5件
- static VALUE lex
_ get _ str(VALUE s) - static VALUE lex
_ getline(void) - Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] - Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String] - Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1 , raise _ errors: false) -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State]
-
static VALUE lex
_ get _ str(VALUE s) (26132.0) -
文字列 s の lex_gets_ptr の後から一行取得し、返します。 lex_gets_ptr も進められます。
...文字列 s の lex_gets_ptr の後から一行取得し、返します。
lex_gets_ptr も進められます。... -
static VALUE lex
_ getline(void) (26132.0) -
関数 lex_gets を使って lex_input から Ruby プログラムを一行読みこみます。
...関数 lex_gets を使って lex_input から
Ruby プログラムを一行読みこみます。... -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (21207.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。... -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String] (21107.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。... -
Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1 , raise _ errors: false) -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (18219.0) -
Ruby プログラム str をトークンに分割し、そのリストを返します。 ただし Ripper.tokenize と違い、トークンの種類と位置情報も付属します。
...SyntaxError raise_errors が true で、src に文法エラーがある場合に発生します。
//emlist[][ruby]{
require 'ripper'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", FNAME],
# [[1, 3], :on_sp, " ", FNAME],
# [[1, 4], :on_ident, "m", ENDFN],
# [[1, 5],......on_kw, "nil", END],
# [[1, 12], :on_sp, " ", END],
# on_kw, "end", END
Ripper.lex("def req(true) end", raise_errors: true)
# => SyntaxError (syntax error, unexpected `true', expecting ')')
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の......です。
: 種類 (Symbol)
トークンの種類が「:on_XXX」の形式のシンボルで渡されます。
: トークン (String)
トークン文字列です。
: ステート (Ripper::Lexer::State)
トークンの状態を表す Ripper::Lexer::State のインスタンスです。... -
Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1) -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (18213.0) -
Ruby プログラム str をトークンに分割し、そのリストを返します。 ただし Ripper.tokenize と違い、トークンの種類と位置情報も付属します。
...。
@param lineno src の開始行番号を指定します。省略すると 1 になります。
//emlist[][ruby]{
require 'ripper'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", EXPR_FNAME],
# [[1, 3], :on_sp, " ", EXPR_FNAME],
# [[1, 4], :on_ident, "m", EXPR_ENDFN],......, :on_sp, " ", EXPR_BEG],
# [[1, 9], :on_kw, "nil", EXPR_END],
# [[1, 12], :on_sp, " ", EXPR_END],
# on_kw, "end", EXPR_END
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の配列の要素は 4 要素の配列 (概念的にはタプル......です。
: 種類 (Symbol)
トークンの種類が「:on_XXX」の形式のシンボルで渡されます。
: トークン (String)
トークン文字列です。
: ステート (Ripper::Lexer::State)
トークンの状態を表す Ripper::Lexer::State のインスタンスです。......。
@param lineno src の開始行番号を指定します。省略すると 1 になります。
//emlist[][ruby]{
require 'ripper'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", FNAME],
# [[1, 3], :on_sp, " ", FNAME],
# [[1, 4], :on_ident, "m", ENDFN],
# [[1, 5],......ENDFN],
# [[1, 8], :on_sp, " ", BEG],
# [[1, 9], :on_kw, "nil", END],
# [[1, 12], :on_sp, " ", END],
# on_kw, "end", END
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の配列の要素は 4 要素の配列 (概念的にはタプル... -
Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1) -> [[Integer , Integer] , Symbol , String] (18113.0) -
Ruby プログラム str をトークンに分割し、そのリストを返します。 ただし Ripper.tokenize と違い、トークンの種類と位置情報も付属します。
...lineno src の開始行番号を指定します。省略すると 1 になります。
//emlist[][ruby]{
require 'ripper'
require 'pp'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def"],
# [[1, 3], :on_sp, " "],
# [[1, 4], :on_ident, "m"],
# [[1, 5], :on_lparen, "("],
#......[1, 7], :on_rparen, ")"],
# [[1, 8], :on_sp, " "],
# [[1, 9], :on_kw, "nil"],
# [[1, 12], :on_sp, " "],
# on_kw, "end"
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の配列の要素は 3 要素の配列 (概念的にはタプル... -
Kernel
. # Complex(r , i = 0) -> Complex (6200.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@raise ArgumentError 変換......します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//}
r にも......omplex(a, b) を a+bi として計算した Complex オブジェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.n... -
Kernel
. # Complex(r , i = 0 , exception: true) -> Complex | nil (6200.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@param exception false を......します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//}
r にも......omplex(a, b) を a+bi として計算した Complex オブジェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.n... -
Kernel
. # Complex(s) -> Complex (6200.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@raise ArgumentError 変換......します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//}
r にも......omplex(a, b) を a+bi として計算した Complex オブジェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.n... -
Kernel
. # Complex(s , exception: true) -> Complex | nil (6200.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@param exception false を......します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//}
r にも......omplex(a, b) を a+bi として計算した Complex オブジェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.n... -
Socket
:: Constants :: IFF _ SIMPLEX (6100.0) -
can't hear own transmissions
can't hear own transmissions -
Socket
:: IFF _ SIMPLEX (6100.0) -
can't hear own transmissions
can't hear own transmissions -
static int yylex(void) (6100.0)
-
yyparse から呼び出されるスキャンルーチンです。 次のトークンを読み込み、そのシンボルを返します。
yyparse から呼び出されるスキャンルーチンです。
次のトークンを読み込み、そのシンボルを返します。 -
irb
/ slex (6016.0) -
Ruby のソースコードを字句解析するためのサブライブラリです。 irb/ruby-lex から使用されます。
...Ruby のソースコードを字句解析するためのサブライブラリです。
irb/ruby-lex から使用されます。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。...