Skip to content

Instantly share code, notes, and snippets.

@vic
Created December 15, 2010 00:59
Show Gist options
  • Select an option

  • Save vic/741443 to your computer and use it in GitHub Desktop.

Select an option

Save vic/741443 to your computer and use it in GitHub Desktop.
version.fy
--- /more/vic/hk/fancy/diff/rb-compiler/version.asm 2010-12-14 18:49:11.665591000 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/version.asm 2010-12-14 18:48:12.755061002 -0600
@@ -1,47 +1,47 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 5
-Lines to IP: 2: 0-2, 1: 3-7, 3: 8-10, 2: 11-15, 4: 16-18, 3: 19-23, 5: 24-26, 4: 27-33, 7: 34-36, 6: 37-62, 7: 63-71
+Lines to IP: 2: 0--1, 1: 0-7, 2: 8-15, 3: 16-23, 4: 24-33, 6: 34-62, 7: 63-71
0000: push_scope
0001: push_literal :VERSION_MAJOR
0003: meta_push_0
0004: send_stack :const_set, 2
0007: pop
0008: push_scope
0009: push_literal :VERSION_MINOR
0011: meta_push_2
0012: send_stack :const_set, 2
0015: pop
0016: push_scope
0017: push_literal :VERSION_PATCH
0019: meta_push_0
0020: send_stack :const_set, 2
0023: pop
0024: push_scope
0025: push_literal :VERSION_SUFFIX
0027: push_literal "alpha"
0029: string_dup
0030: send_stack :const_set, 2
0033: pop
0034: push_scope
0035: push_literal :FANCY_VERSION
0037: push_const_fast :VERSION_MAJOR, 7
0040: push_const_fast :VERSION_MINOR, 8
0043: push_const_fast :VERSION_PATCH, 9
0046: make_array 3
0048: push_literal "."
0050: string_dup
0051: send_stack :"join:", 1
0054: push_literal " "
0056: string_dup
0057: send_stack :":++", 1
0060: push_const_fast :VERSION_SUFFIX, 14
0063: send_stack :":++", 1
0066: send_stack :const_set, 2
0069: pop
0070: push_true
0071: ret
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment