Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated rubyish README etc. nqp => nqp-p
  • Loading branch information
dwarring committed Oct 28, 2013
1 parent 8ea4967 commit e13e2f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions examples/rubyish/README.md
Expand Up @@ -6,9 +6,9 @@ Ruby subset extended from the `rubyish-4` example, as introduced in the Edument

Example usage:
```
% nqp rubyish.nqp -e'puts "Hello World!"'
% nqp rubyish.nqp examples-rubyish/template.rbi
% nqp rubyish.nqp # repl mode
% nqp-p rubyish.nqp -e'puts "Hello World!"'
% nqp-p rubyish.nqp examples-rubyish/template.rbi
% nqp-p rubyish.nqp # repl mode
> puts 37 + 5
```
Implemented:
Expand All @@ -34,14 +34,14 @@ Notes:

Handy Options:

% nqp rubyish.nqp --target=parse -e'puts "Hello World!"' # dump parse
% nqp rubyish.nqp --target=ast -e'puts "Hello World!"' # dump ast
% nqp rubyish.nqp --target=ast # REPL mode, dump ASTS
% nqp-p rubyish.nqp --target=parse -e'puts "Hello World!"' # dump parse
% nqp-p rubyish.nqp --target=ast -e'puts "Hello World!"' # dump ast
% nqp-p rubyish.nqp --target=ast # REPL mode, dump ASTS
> puts 42

To run tests:
```
% prove -v -e'nqp rubyish.nqp' t
% prove -v -e'nqp-p rubyish.nqp' t
```

Strings and truth values are Perlish rather than Rubyish:
Expand Down
6 changes: 2 additions & 4 deletions examples/rubyish/examples-rubyish/fractal-tree.rbi
@@ -1,16 +1,14 @@
<?rbi?>
<%#
# Fractal tree rubyish example. Usage:
# % nqp rubyish.nqp examples-rubyish/fractal-tree.rbi > fractal.svg
# % nqp-p rubyish.nqp examples-rubyish/fractal-tree.rbi > fractal.svg
#
%>
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN'
'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg width='100%' height='100%' version='1.1'
xmlns='http://www.w3.org/2000/svg'>
<svg width='100%' height='100%' version='1.1' xmlns='http://www.w3.org/2000/svg'>
<%#----------
def cos(a); nqp::cos_n(a); end
def sin(a); nqp::sin_n(a); end
Expand Down

0 comments on commit e13e2f4

Please sign in to comment.