Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A parser and executor for Leonardo, a programming language based on Logo.

Notifications You must be signed in to change notification settings

sandy-e/syntax-2

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A parser for Leonardo, a program inspired by Logo.

Commands include:

Command Result
FORW d Leonardo moves forward d steps (for a positive integer d)
BACK d Leonardo moves backwards d steps (for a positive integer d)
LEFT a Leonardo turns left a degrees, without changing position
RIGHT a Leonardo turns right a degrees, without changing position
DOWN Leonardo lowers the pencil so that it leaves a trail when Leonardo moves
UP Leonardo raises the pencil so that it leaves no trail when Leonardo moves
COLOR c changes the color of the pen to the color c . Color is specified in hex format, e.g. #FFA500 for orange.
REP r Leonardo repeats r times (for a positive integer r). is a sequence of one or more instructions, surrounded by quotation marks ('"'). If the sequence consists of only a single instruction, the quotation marks are optional

A formal grammar in Backus–Naur form is also defined.

About

A parser and executor for Leonardo, a programming language based on Logo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.