Ticket #674: book-remove-escape-B.patch
File book-remove-escape-B.patch, 2.2 KB (added by fperrad, 13 years ago) |
---|
-
docs/book/ch02_getting_started.pod
24 24 If you have these dependencies installed, build the core virtual machine and 25 25 compiler toolkit and run the standard test suite with the commands: 26 26 27 $ B<perl Configure.pl>28 $ B<make>29 $ B<make test>27 $ perl Configure.pl 28 $ make 29 $ make test 30 30 31 31 By default, Parrot installs to directories F<bin/>, C<lib/>, et cetera under 32 32 the prefix F</usr/local>. If you have privileges to write to these 33 33 directories, install Parrot with: 34 34 35 $ B<make install>35 $ make install 36 36 37 37 To install Parrot beneath a different prefix, use the C<--prefix> option to 38 38 C<Configure.pl>: 39 39 40 $ B<perl Configure.pl --prefix=/home/me/parrot>40 $ perl Configure.pl --prefix=/home/me/parrot 41 41 42 42 If you intend to I<develop> -- not just I<use> -- a language on Parrot, install 43 43 the Parrot developer tools as well: 44 44 45 $ B<make install-dev>45 $ make install-dev 46 46 47 47 =head2 Running Parrot 48 48 … … 59 59 60 60 Now run this file with: 61 61 62 $ B<parrot news.pasm>62 $ parrot news.pasm 63 63 64 64 which will print: 65 65 -
docs/book/ch05_pge.pod
81 81 82 82 Then compile the grammar: 83 83 84 $ B<parrot Perl6Grammar.pbc --output=Contacts.pir Contacts.pg>84 $ parrot Perl6Grammar.pbc --output=Contacts.pir Contacts.pg 85 85 86 86 =for author 87 87 … … 93 93 The path to F<parrot> and to the F<Perl6Grammar.pbc> file will vary on 94 94 different systems. If you compiled Parrot from source, it will be: 95 95 96 $ B<./parrot runtime/parrot/library/PGE/Perl6Grammar.pbc \>97 B<--output=Contacts.pir Contacts.pg>96 $ ./parrot runtime/parrot/library/PGE/Perl6Grammar.pbc \ 97 --output=Contacts.pir Contacts.pg 98 98 99 99 Next, create a small PIR script to run your grammar. Save it as 100 100 F<grammar_test.pir>: … … 123 123 124 124 Run the test script: 125 125 126 $ B<parrot grammar_test.pir>126 $ parrot grammar_test.pir 127 127 128 128 It will print out a text representation of the raw parse tree stored in the 129 129 C<match> variable: