git @ Cat's Eye Technologies Velo / ef19cfe
README and comment tweaks. Cat's Eye Technologies 12 years ago
2 changed file(s) with 10 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
00 Velo
11 ====
2
3 _Language version 0.1, distribution revision 2012.0714_
24
35 > "Jaws was never my scene, and I don't like Star Wars."
46 > -- Queen, "Bicycle Race"
4042
4143 Conditional statements are implemented by a method called `if`.
4244 This method is on the root object, called `Object`, from which all
43 objects, including your script, inherit.
45 objects, including your script, descend.
4446
4547 | if ({X}.equals {X}), {IO.print {Yes}}, {IO.print {No}}
4648 = Yes
487489 Summary of methods on `Object`
488490 ------------------------------
489491
490 * `extend` <string>
492 * `extend` STRING
491493 * `self`
492494 * `new` ...
493495 * `Object`, `String`, `IO`, and all other predefined classes
495497 Summary of methods on `String`
496498 ------------------------------
497499
498 * `if` <string>, <string>
499 * `while` <string>
500 * `if` STRING, STRING
501 * `while` STRING
500502 * `class`
501 * `method` <string>
502 * `concat` <string>
503 * `eval` <string>
503 * `method` STRING
504 * `concat` STRING
505 * `eval` STRING
504506
505507 Summary of methods on `IO`
506508 --------------------------
507509
508 * `print` <string>
510 * `print` STRING
509511 * `input`
510512
511513 Grammar
00 #!/usr/bin/env ruby
1
2 # This is mostly a stub that always fails for now, so that we can at least
3 # run the tests defined in the README.
4
5 # (Part of me is also thinking it's a bad idea to try to implement Velo
6 # in Ruby, but for now, why not.)
71
82 require 'velo/debug'
93 $debug = false