Skip to content

Commit e13e2f4

Browse files
committed
updated rubyish README etc. nqp => nqp-p
1 parent 8ea4967 commit e13e2f4

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

examples/rubyish/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Ruby subset extended from the `rubyish-4` example, as introduced in the Edument
66

77
Example usage:
88
```
9-
% nqp rubyish.nqp -e'puts "Hello World!"'
10-
% nqp rubyish.nqp examples-rubyish/template.rbi
11-
% nqp rubyish.nqp # repl mode
9+
% nqp-p rubyish.nqp -e'puts "Hello World!"'
10+
% nqp-p rubyish.nqp examples-rubyish/template.rbi
11+
% nqp-p rubyish.nqp # repl mode
1212
> puts 37 + 5
1313
```
1414
Implemented:
@@ -34,14 +34,14 @@ Notes:
3434

3535
Handy Options:
3636

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

4242
To run tests:
4343
```
44-
% prove -v -e'nqp rubyish.nqp' t
44+
% prove -v -e'nqp-p rubyish.nqp' t
4545
```
4646

4747
Strings and truth values are Perlish rather than Rubyish:

examples/rubyish/examples-rubyish/fractal-tree.rbi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<?rbi?>
22
<%#
33
# Fractal tree rubyish example. Usage:
4-
# % nqp rubyish.nqp examples-rubyish/fractal-tree.rbi > fractal.svg
4+
# % nqp-p rubyish.nqp examples-rubyish/fractal-tree.rbi > fractal.svg
55
#
66
%>
77
<?xml version='1.0' encoding='utf-8' standalone='no'?>
88
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN'
99
'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
10-
<svg width='100%' height='100%' version='1.1'
11-
xmlns='http://www.w3.org/2000/svg'>
10+
<svg width='100%' height='100%' version='1.1' xmlns='http://www.w3.org/2000/svg'>
1211
<%#----------
13-
1412
def cos(a); nqp::cos_n(a); end
1513
def sin(a); nqp::sin_n(a); end
1614

0 commit comments

Comments
 (0)