-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
parrot-basic.scroll
41 lines (36 loc) · 1.82 KB
/
parrot-basic.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import ../code/conceptPage.scroll
id parrot-basic
name Parrot BASIC
appeared 2009
tags pl
centralPackageRepositoryCount 0
country United States
originCommunity https://www.perl.org
lineCommentToken #
hasLineComments true
# A comment
hasComments true
# A comment
hasSemanticIndentation false
wikipedia https://en.wikipedia.org/wiki/Parrot_BASIC
example
.sub 'main' :main
$I1 = 4
inc $I1 # $I1 is now 5
$I1 += 2 # $I1 is now 7
$N1 = 42.0
dec $N1 # $N1 is now 41.0
$N1 -= 2.0 # $N1 now 39.0
print $I1
print ', '
print $N1
print "\n"
.end
related c parrot-assembly parrot-internal-representation perl raku python jvm llvmir java java-bytecode joy lua php ruby scheme tcl wmlscript arc apl common-lisp lisp forth quickbasic smalltalk cil befunge brainfuck lolcode unlambda unicode
summary Parrot is a register-based process virtual machine designed to run dynamic languages efficiently. It is possible to compile Parrot assembly language and PIR (an intermediate language) to Parrot bytecode and execute it. Parrot is free and open source software.Parrot was started by the Perl community and is developed with help from the open source and free software communities. As a result, it is focused on license compatibility with Perl (Artistic License 2.0), platform compatibility across a broad array of systems, processor architecture compatibility across most modern processors, speed of execution, small size (around 700k depending on platform), and the flexibility to handle the varying demands made by Perl 6 and other modern dynamic languages. Version 1.0, with a stable API for development, was released on March 17, 2009.The current version is release 8.1.0 "Andean Parakeet"
created 2010
backlinksCount 174
pageId 60511
revisionCount 1
dailyPageViews 1
appeared 2016