種類
ライブラリ
- ビルトイン (762)
-
cgi
/ html (576) - cmath (120)
-
json
/ add / complex (24) - matrix (24)
-
rdoc
/ parser / ruby (12) -
ripper
/ lexer (60) -
rubygems
/ exceptions (24) - socket (24)
クラス
モジュール
-
CGI
:: HtmlExtension (564) - CMath (120)
- Kernel (24)
-
Socket
:: Constants (12)
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (12)
-
/ (12) - < (12)
- <= (12)
- <=> (6)
- == (12)
- > (12)
- >= (12)
- Complex (36)
- DependencyRemovalException (12)
- EndOfYAMLException (12)
- HtmlExtension (12)
- I (12)
-
IFF
_ SIMPLEX (24) - Lexer (12)
- RubyLex (12)
- SignalException (12)
- a (24)
- abs (12)
- abs2 (12)
- acos (6)
- acosh (6)
- angle (12)
- arg (12)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- base (12)
- between? (12)
- blockquote (24)
- caption (24)
- cbrt (6)
- checkbox (24)
-
checkbox
_ group (24) - clamp (12)
- coerce (12)
- conj (12)
- conjugate (12)
- cos (6)
- cosh (6)
- denominator (12)
- exp (6)
- fdiv (30)
-
file
_ field (24) - finite? (9)
- form (48)
-
here
_ document (12) -
heredoc
_ identifier (12) -
heredoc
_ restore (12) - hidden (24)
- html (24)
- i (12)
- imag (12)
- imaginary (12)
- img (24)
- infinite? (9)
- inspect (12)
-
irb
/ ruby-lex (12) -
irb
/ slex (6) -
json
/ add / complex (12) -
json
_ create (12) -
lex
_ get _ str (12) -
lex
_ getline (12) - log (12)
- log10 (6)
- log2 (6)
- magnitude (12)
-
marshal
_ dump (12) -
multipart
_ form (48) - new (36)
- numerator (12)
- parse (12)
-
parse
_ string (12) -
password
_ field (24) - phase (12)
- polar (24)
- quo (24)
-
radio
_ group (24) - rationalize (24)
-
rb
_ reserved _ word (12) - real (12)
- real? (12)
- rect (24)
- rectangular (24)
- reset (24)
-
ripper
/ lexer (12) -
scrolling
_ list (24) - signm (12)
- signo (12)
- sin (6)
- sinh (6)
- sqrt (6)
- submit (24)
- tan (6)
- tanh (6)
-
text
_ field (24) - textarea (24)
-
to
_ c (48) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ r (12) -
to
_ s (12) - tokenize (12)
- tr (12)
- trace (12)
- yylex (12)
- 字句構造 (12)
検索結果
先頭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 から呼び出されるスキャンルーチンです。
次のトークンを読み込み、そのシンボルを返します。