<s>
Karel	B-Language
is	O
an	O
educational	B-Language
programming	I-Language
language	I-Language
for	O
beginners	O
,	O
created	O
by	O
Richard	O
E	O
.	O
Pattis	O
in	O
his	O
book	O
Karel	B-Language
The	I-Language
Robot	I-Language
:	O
A	O
Gentle	O
Introduction	O
to	O
the	O
Art	O
of	O
Programming	O
.	O
</s>
<s>
The	O
language	O
is	O
named	O
after	O
Karel	B-Language
Čapek	O
,	O
a	O
Czech	O
writer	O
who	O
introduced	O
the	O
word	O
robot	B-Algorithm
in	O
his	O
play	O
R.U.R.	O
</s>
<s>
A	O
program	B-Application
in	O
Karel	B-Language
is	O
used	O
to	O
control	O
a	O
simple	O
robot	B-Algorithm
named	O
Karel	B-Language
that	O
lives	O
in	O
an	O
environment	O
consisting	O
of	O
a	O
grid	O
of	O
streets	O
(	O
left-right	O
)	O
and	O
avenues	O
(	O
up-down	O
)	O
.	O
</s>
<s>
Karel	B-Language
understands	O
five	O
basic	O
instructions	O
:	O
move	O
(	O
Karel	B-Language
moves	O
by	O
one	O
square	O
in	O
the	O
direction	O
he	O
is	O
facing	O
)	O
,	O
turnLeft	O
(	O
Karel	B-Language
turns	O
90°	O
left	O
)	O
,	O
putBeeper	O
(	O
Karel	B-Language
puts	O
a	O
beeper	O
on	O
the	O
square	O
he	O
is	O
standing	O
at	O
)	O
,	O
pickBeeper	O
(	O
Karel	B-Language
lifts	O
a	O
beeper	O
off	O
the	O
square	O
he	O
is	O
standing	O
at	O
)	O
,	O
and	O
turnoff	O
(	O
Karel	B-Language
switches	O
himself	O
off	O
,	O
the	O
program	B-Application
ends	O
)	O
.	O
</s>
<s>
Karel	B-Language
can	O
also	O
perform	O
boolean	O
queries	O
about	O
his	O
immediate	O
environment	O
,	O
asking	O
whether	O
there	O
is	O
a	O
beeper	O
where	O
he	O
is	O
standing	O
,	O
whether	O
there	O
are	O
barriers	O
next	O
to	O
him	O
,	O
and	O
about	O
the	O
direction	O
he	O
is	O
facing	O
.	O
</s>
<s>
A	O
programmer	B-Application
can	O
create	O
additional	O
instructions	O
by	O
defining	O
them	O
in	O
terms	O
of	O
the	O
five	O
basic	O
instructions	O
,	O
and	O
by	O
using	O
conditional	O
control	O
flow	O
statements	O
if	O
and	O
while	O
with	O
environment	O
queries	O
,	O
and	O
by	O
using	O
the	O
iterate	O
construct	O
.	O
</s>
<s>
The	O
following	O
is	O
a	O
simple	O
example	O
of	O
Karel	B-Language
syntax	O
:	O
</s>
<s>
The	O
principles	O
of	O
Karel	B-Language
were	O
updated	O
to	O
the	O
object-oriented	B-Language
programming	I-Language
paradigm	O
in	O
a	O
new	O
programming	O
language	O
called	O
Karel++	B-Language
.	O
</s>
<s>
Karel++	B-Language
is	O
conceptually	O
based	O
on	O
Karel	B-Language
,	O
but	O
uses	O
a	O
completely	O
new	O
syntax	O
,	O
similar	O
to	O
Java	B-Language
.	O
</s>
<s>
A	O
REALbasic	O
implementation	O
,	O
rbKarel	O
,	O
provides	O
the	O
basic	O
Karel	B-Language
commands	O
within	O
an	O
RBScript	O
environment	O
with	O
BASIC	O
syntax	O
being	O
used	O
for	O
loops	O
and	O
conditionals	O
.	O
</s>
<s>
This	O
teaching	O
project	O
provides	O
a	O
cross-platform	O
GUI	O
for	O
Karel	B-Language
experiments	O
including	O
single-stepping	O
and	O
spoken	O
output	O
.	O
</s>
<s>
A	O
Karel-inspired	O
language	O
and	O
environment	O
called	O
Robot	B-Algorithm
Emil	O
uses	O
a	O
3D	O
view	O
of	O
the	O
robot	B-Algorithm
's	O
world	O
.	O
</s>
<s>
Robot	B-Algorithm
Emil	O
offers	O
a	O
large	O
palette	O
of	O
objects	O
that	O
can	O
be	O
placed	O
to	O
depict	O
walls	O
,	O
windows	O
(	O
transparency	O
)	O
,	O
water	O
and	O
grass	O
.	O
</s>
<s>
The	O
robot	B-Algorithm
may	O
be	O
controlled	O
interactively	O
with	O
buttons	O
in	O
the	O
GUI	O
,	O
or	O
by	O
programs	O
written	O
in	O
Emil	O
's	O
Karel-like	O
programming	O
language	O
.	O
</s>
<s>
The	O
author	O
states	O
that	O
the	O
program	B-Application
is	O
free	O
for	O
use	O
by	O
schools	O
,	O
students	O
and	O
children	O
.	O
</s>
<s>
A	O
proprietary	O
language	O
which	O
is	O
also	O
called	O
Karel	B-Language
is	O
used	O
to	O
program	B-Application
the	O
robots	B-Algorithm
of	O
FANUC	O
Robotics	O
.	O
</s>
<s>
However	O
,	O
FANUC	O
Karel	B-Language
is	O
derived	O
from	O
Pascal	B-Application
.	O
</s>
<s>
The	O
language	O
has	O
also	O
been	O
implemented	O
as	O
Karel	B-Language
the	O
Dog	O
in	O
JavaScript	B-Language
by	O
CodeHS	O
.	O
</s>
<s>
Similar	O
to	O
the	O
original	O
language	O
,	O
this	O
implementation	O
features	O
Karel	B-Language
in	O
a	O
grid	O
world	O
.	O
</s>
<s>
Programmers	B-Application
use	O
and	O
build	O
upon	O
Karel	B-Language
's	O
simple	O
vocabulary	O
of	O
commands	O
to	O
accomplish	O
programming	O
tasks	O
.	O
</s>
<s>
Instead	O
of	O
putting	O
and	O
picking	O
beepers	O
,	O
Karel	B-Language
the	O
Dog	O
puts	O
and	O
takes	O
tennis	O
balls	O
.	O
</s>
<s>
A	O
German	O
version	O
of	O
Karel	B-Language
is	O
named	O
"	O
Robot	B-Algorithm
Karol	O
"	O
.	O
</s>
