meta_compile 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,7 +3,7 @@ meta_compile
3
3
 
4
4
  A meta compilation framework for Ruby à la [Meta-II by Val Schorre](http://ibm-1401.info/Meta-II-schorre.pdf).
5
5
 
6
- This uses a [C version of Meta-II](https://github.com/impeachgod/meta) developed by Long Nguyen to bootstrap a Ruby version from a [fully self-contained, 26 (non-empty) line specification file](https://raw.github.com/robertfeldt/meta_compile/master/bootstrap/meta_to_ruby_minimal.meta). The [generated Ruby Meta-II compiler file](https://github.com/robertfeldt/meta_compile/blob/master/bin/meta_compile) is 231 lines of Ruby code.
6
+ This uses a [C version of Meta-II](https://github.com/impeachgod/meta) developed by Long Nguyen to bootstrap a Ruby version from a [fully self-contained, 26 (non-empty) line specification file](https://raw.github.com/robertfeldt/meta_compile/master/syntaxes/meta_to_ruby_minimal.meta). The [generated Ruby Meta-II compiler file](https://github.com/robertfeldt/meta_compile/blob/master/bin/meta_compile) is 231 lines of Ruby code.
7
7
 
8
8
  Install
9
9
  -------
data/bin/meta_compile CHANGED
@@ -222,10 +222,10 @@ raise("error at: " + @i.rest.split("\n")[0]) if !@f
222
222
  raise("error at: " + @i.rest.split("\n")[0]) if !@f
223
223
  @o.print 'end'
224
224
  @o.print "\n"
225
- @o.print '$c.new.compile(File.read(ARGV[0]), STDOUT) if __FILE__ == $0'
225
+ @o.print '$c.new.compile(File.read(ARGV[0]), STDOUT)'
226
226
  @o.print "\n"
227
227
  end
228
228
  end while false
229
229
  end
230
230
  end
231
- $c.new.compile(File.read(ARGV[0]), STDOUT) if __FILE__ == $0
231
+ $c.new.compile(File.read(ARGV[0]), STDOUT)
@@ -222,10 +222,10 @@ raise("error at: " + @i.rest.split("\n")[0]) if !@f
222
222
  raise("error at: " + @i.rest.split("\n")[0]) if !@f
223
223
  @o.print 'end'
224
224
  @o.print "\n"
225
- @o.print '$c.new.compile(File.read(ARGV[0]), STDOUT) if __FILE__ == $0'
225
+ @o.print '$c.new.compile(File.read(ARGV[0]), STDOUT)'
226
226
  @o.print "\n"
227
227
  end
228
228
  end while false
229
229
  end
230
230
  end
231
- $c.new.compile(File.read(ARGV[0]), STDOUT) if __FILE__ == $0
231
+ $c.new.compile(File.read(ARGV[0]), STDOUT)
data/meta_compile.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'meta_compile'
3
- s.version = '0.0.13'
3
+ s.version = '0.0.15'
4
4
  s.date = '2012-11-25'
5
5
  s.summary = "meta compiler framework"
6
6
  s.description = "A meta compilation framework à la Meta-II by Val Schorre"
@@ -29,6 +29,6 @@ program = '.syntax' .id
29
29
  <'@i, @o = StringScanner.new(str), out'>
30
30
  <'compile_' $> <'end'>
31
31
  *rule '.end' <'end'>
32
- <'$c.new.compile(File.read(ARGV[0]), STDOUT) if __FILE__ == $0'>;
32
+ <'$c.new.compile(File.read(ARGV[0]), STDOUT)'>;
33
33
 
34
34
  .end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_compile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: