Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created December 15, 2010 01:59
Show Gist options
  • Save bakkdoor/741521 to your computer and use it in GitHub Desktop.
Save bakkdoor/741521 to your computer and use it in GitHub Desktop.
bakkdoor:~/projekte/fancy/fancy-lang[diff*]> fancy -cv lib/compiler.fy
Compiling lib/compiler.fy
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 5
Lines to IP: 5: 0-11, 6: 12-23, 7: 24-35, 9: 36-47, 15: 48-48, 11: 49-75, 14: 76-77, 15: 78-84
0000: push_const_fast :Fancy, 1
0003: find_const 2
0005: push_literal "compiler/compiler"
0007: string_dup
0008: send_stack :"require:", 1
0011: pop
0012: push_const_fast :Fancy, 5
0015: find_const 2
0017: push_literal "compiler/stages"
0019: string_dup
0020: send_stack :"require:", 1
0023: pop
0024: push_const_fast :Fancy, 7
0027: find_const 2
0029: push_literal "compiler/ast"
0031: string_dup
0032: send_stack :"require:", 1
0035: pop
0036: push_const_fast :Fancy, 9
0039: find_const 2
0041: push_literal "parser"
0043: string_dup
0044: send_stack :"require:", 1
0047: pop
0048: push_self
0049: push_const_fast :Fancy, 11
0052: find_const 2
0054: push_literal "lib/compiler.fy"
0056: string_dup
0057: send_stack :"current_file:", 1
0060: push_const_fast :File, 15
0063: push_const_fast :ARGV, 17
0066: meta_push_0
0067: send_stack :":[]", 1
0070: send_stack :expand_path, 1
0073: send_stack :":==", 1
0076: create_block #<Rubinius::CompiledMethod __block__ file=lib/compiler.fy>
0078: allow_private
0079: send_stack :"if:then:", 2
0082: pop
0083: push_true
0084: ret
----------------------------------------
============== :__block__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 3
Lines to IP: 14: 0--1, 12: 0-11, 13: 12-21, 14: 22-25
0000: push_const_fast :Fancy, 1
0003: find_const 2
0005: push_literal "compiler/command"
0007: string_dup
0008: send_stack :"require:", 1
0011: pop
0012: push_const_fast :Fancy, 5
0015: find_const 6
0017: find_const 7
0019: push_const_fast :ARGV, 9
0022: send_stack :"run:", 1
0025: ret
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment