るりまサーチ

最速Rubyリファレンスマニュアル検索!
400件ヒット [1-100件を表示] (0.141秒)
トップページ > クエリ:t[x] > クエリ:Ruby[x] > クエリ:compile[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

検索結果

<< 1 2 3 ... > >>

static NODE * compile(VALUE src, char *file, int line) (38216.0)

Ruby の文字列または IO オブジェクト src を 構文木にコンパイルし、返します。そのとき、src が ファイル file の line 行目から始まっていると仮定します。

...
Ruby
の文字列または IO オブジェクト src を
構文木にコンパイルし、返します。そのとき、src が
ファイル file の line 行目から始まっていると仮定します。...

RubyVM::InstructionSequence.compile(source, file = nil, path = nil, line = 1, options = nil) -> RubyVM::InstructionSequence (24341.0)

引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。

...した Ruby のソースコードを元にコンパイル済みの
Ruby
VM::InstructionSequence オブジェクトを作成して返します。

@param source Ruby のソースコードを文字列で指定します。

@param file ファイル名を文字列で指定します。

@param path 引数...
...am options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
Ruby
VM::InstructionSequence.compile_option= を参照
してください。

Ruby
VM::InstructionSequence.compile("a =...
...1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>

@see RubyVM::InstructionSequence.compile_file...

Regexp.compile(string, option = nil) -> Regexp (18261.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二引数は警告の上無視されます。

@param string 正規表現を文字列として与えます。

@param opti...
...Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
Regexp::IGNORECASE の指定と同じになります。

@raise RegexpError 正規表現のコンパイルに失敗した場合発生します。

//emlist[例][ruby]{...
...str = "This is Regexp"
t
1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t
1.match(str)
p $~ # => "This is Regexp"

t
2 = Regexp.compile('
t
his # ここは使用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t
2.match(str)
p Regex...

Regexp.compile(string, option = nil, code = nil) -> Regexp (18261.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。

@param string 正規表現を文字列として与えま...
...I-8BIT になります。
それ以外の指定は警告を出力します。

@raise RegexpError 正規表現のコンパイルに失敗した場合発生します。

//emlist[例][ruby]{
str = "This is Regexp"
t
1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t
1.match(str)
p...
...> "This is Regexp"

t
2 = Regexp.compile('
t
his # ここは使用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t
2.match(str)
p Regexp.last_match # => "This is Regexp"

str = "ふるいけや\nかわずとびこむ\nみずのおと"
t
2 =...

RubyVM::InstructionSequence.compile_option=(options) (15325.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。

...ル時のデフォルトの最適化オプションを引数
options で指定します。

@param options コンパイル時の最適化オプションを true、false、nil、
Hash のいずれかで指定します。true を指定した場合は
全てのオプショ...
...structions_unification
* :operands_unification
* :peephole_optimization
* :specialized_instruction
* :stack_caching
* :tailcall_optimization
* :trace_instruction
//}
:debug_level をキーに指定した場合は値を数値で指定します。

.new、.compile、.compile...
..._file メソッドの実行の際に option 引数を指定し
た場合はその実行のみ最適化オプションを変更する事もできます。

@see RubyVM::InstructionSequence.new,
Ruby
VM::InstructionSequence.compile,
Ruby
VM::InstructionSequence.compile_file...

絞り込み条件を変える

RubyVM::InstructionSequence.compile_option -> Hash (15219.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。

...//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option

# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>...
...false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}

@see RubyVM::InstructionSequence.compile_option=...

RubyVM::InstructionSequence.compile_file(file, options = nil) -> RubyVM::InstructionSequence (12441.0)

引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。

...引数 file で指定した Ruby のソースコードを元にコンパイル済みの
Ruby
VM::InstructionSequence オブジェクトを作成して返します。

Ruby
VM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。

@param...
...@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
Ruby
VM::InstructionSequence.compile_option= を参照
してください。

# /tmp/hello.rb
puts "Hello, wor...
...ld!"

# irb
Ruby
VM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>

@see RubyVM::InstructionSequence.compile...

NODE * rb_compile_string(const char *f, VALUE s, int line) (12264.0)

Ruby の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。

...
Ruby
の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby
_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。...

NODE * rb_compile_cstr(const char *f, const char *s, int len, int line) (12248.0)

C の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。

...C の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby
_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。...

void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...) (12216.0)

この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想 定しています。外部のライブラリで使用すべきではありません。

...この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想
定しています。外部のライブラリで使用すべきではありません。...

絞り込み条件を変える

<< 1 2 3 ... > >>