Index of the pylogo module
-
m
pylogo
...
- a Logo ...
-
m
builtins
...
- builtins for pylogo
Ian Bicking <ianb@colorstudy.com>
- a EOF ...
-
C
NoDefault
...
- f arctan ... - ARCTAN num (ARCTAN x y)
- f ascii ... - ASCII char
- f ashift ... - ASHIFT num1 num2
- f assertequal ...
- f backtick ... - BACKTICK list
- f beforep ... - BEFOREP word1 word2 BEFORE? word1 word2
- f bitand ... - BITAND num1 num2 (BITAND num1 num2 num3 ...)
- f bitnot ... - BITNOT num
- f bitor ... - BITOR num1 num2 (BITOR num1 num2 num3 ...)
- f bitxor ... - BITXOR num1 num2 (BITXOR num1 num2 num3 ...)
- f butfirst ... - BUTFIRST wordorlist BF wordorlist
- f butfirsts ... - BUTFIRSTS list BFS list
- f butlast ... - BUTLAST wordorlist BL wordorlist
- f bye ...
- f call ...
- f catch ...
- f char ... - CHAR int
- f combine ... - COMBINE thing1 thing2
- f cos ... - COS degrees
- f count ... - COUNT thing
- f definedp ... - DEFINEDP name DEFINED? name
- f difference ... - DIFFERENCE num1 num2 num1 - num2
- f doteq ... - .EQ thing1 thing2
- f dotsetbf ... - .SETBF list value
- f dotsetfirst ... - .SETFIRST list value
- f dountil ...
- f dowhile ...
- f emptyp ... - EMPTYP thing EMPTY? thing
- f equalp ... - EQUALP thing1 thing2 EQUAL? thing1 thing2 thing1 = thing2
- f erall ... - ERALL
- f erase ... - ERASE contentslist ER contentslist
- f erns ... - ERNS
- f erps ... - ERPS
- f exp ... - EXP num
- f first ... - FIRST thing
- f firsts ... - FIRSTS list
- f forever ...
- f fput ... - FPUT thing list
- f function ...
- f gensym ... - GENSYM
- f greaterp ... - GREATERP num1 num2 GREATER? num1 num2 num1 > num2
- f iffalse ... - IFFALSE instructionlist IFF instructionlist
- f iftrue ... - IFTRUE instructionlist IFT instructionlist
- f ignore ... - IGNORE value
- f iseq ... - ISEQ from to
- f item ... - ITEM index thing
- f items ...
- f keys ...
- f last ... - LAST wordorlist
- f lessp ... - LESSP num1 num2 LESS? num1 num2 num1 < num2
- f listp ... - LISTP thing LIST? thing
- f ln ... - LN num
- f load ...
- f log10 ... - LOG10 num
- f logoWhile ... - WHILE tfexpression instructionlist
- f logo_abs ...
- f logo_alse ...
- f logo_and ... - AND tf1 tf2 (AND tf1 tf2 tf3 ...)
- f logo_assert ...
- f logo_break ...
- f logo_continue ...
- f logo_define ... - DEFINE procname text
- f logo_eval ...
- f logo_for ...
- f logo_getattr ...
- f logo_help ... - HELP name
- f logo_if ... - IF tf instructionlist (IF tf instructionlist1 instructionlist2)
- f logo_ifelse ... - IFELSE tf instructionlist1 instructionlist2
- f logo_import ...
- f logo_int ... - INT num
- f logo_list ... - LIST thing1 thing2 (LIST thing1 thing2 thing3 ...)
- f logo_new ...
- f logo_none ...
- f logo_not ... - NOT tf
- f logo_or ... - OR tf1 tf2 (OR tf1 tf2 tf3 ...)
- f logo_random ... - RANDOM num
- f logo_repr ...
- f logo_round ... - ROUND num
- f logo_rue ...
- f logo_run ... - RUN instructionlist
- f logo_setattr ...
- f logo_soft_repr ... - Like logoRepr, only we're already in a quoted context, so we don't have to quote strings.
- f logo_str ...
- f logo_type ... - TYPE thing thing2 thing3 ... (TYPE thing1 thing2 ...)
- f lowercase ... - LOWERCASE word
- f lput ... - LPUT thing list
- f lshift ... - LSHIFT num1 num2
- f member ... - MEMBER thing1 thing2
- f memberp ... - MEMBERP thing1 thing2 MEMBER? thing1 thing2
- f minus ... - MINUS num - num
- f modulo ... - MODULO num1 num2
- f namep ... - NAMEP name NAME? name
- f names ... - NAMES
- f newdict ...
- f numberp ... - NUMBERP thing NUMBER? thing
- f output ... - OUTPUT value OP value RETURN value
- f pick ... - PICK list
- f power ... - POWER num1 num2
- f pr ... - PRINT thing thing2 thing3 ... PR thing (PRINT thing1 thing2 ...) (PR thing1 thing2 ...)
- f primitivep ... - PRIMITIVEP name PRIMITIVE? name
- f procedurep ... - PROCEDUREP name PROCEDURE? name
- f procedures ... - PROCEDURES
- f product ... - PRODUCT num1 num2 (PRODUCT num1 num2 num3 ...) num1 * num2
- f quotient ... - QUOTIENT num1 num2 (QUOTIENT num) num1 / num2
- f radarctan ... - RADARCTAN num (RADARCTAN x y)
- f radcos ... - RADCOS radians
- f radsin ... - RADSIN radians
- f readlist ... - READLIST RL
- f readrawline ... - READRAWLINE
- f remainder ... - REMAINDER num1 num2
- f remdup ... - REMDUP list
- f remove ... - REMOVE thing list
- f repcount ... - REPCOUNT
- f repeat ... - REPEAT num instructionlist
- f rerandom ... - RERANDOM (RERANDOM seed)
- f reverse ... - REVERSE list
- f rseq ... - RSEQ from to count
- f sentence ... - SENTENCE thing1 thing2 SE thing1 thing2 (SENTENCE thing1 thing2 thing3 ...) (SE thing1 thing2 thing3 ...)
- f setitem ... - SETITEM index array value
- f show ... - SHOW thing thing2 thing3 ... (SHOW thing1 thing2 ...)
- f sin ... - SIN degrees
- f spawn ...
- f sqrt ... - SQRT num
- f startsync ...
- f stop ... - STOP
- f substringp ... - SUBSTRINGP thing1 thing2 SUBSTRING? thing1 thing2
- f sum ... - SUM num1 num2 (SUM num1 num2 num3 ...) num1 + num2
- f sync ...
- f test ...
- f text ... - TEXT procname
- f thing ... - THING varname :quoted.varname
- f timestamp ...
- f until ...
- f uppercase ... - UPPERCASE word
- f values ...
- f wait ...
- f word ... - WORD word1 word2 (WORD word1 word2 word3 ...)
- f wordp ... - WORDP thing WORD? thing
-
m
common
...
- C FrozenFrame ...
-
C
LogoBreak
...
-
C
LogoContinue
...
-
C
LogoControl
...
-
C
LogoEndOfCode
...
- a description ...
- f __init__ ...
- f initialize_traceback ...
- f set_frame ...
- f traceback ...
-
C
LogoEndOfLine
...
- a description ...
- f __init__ ...
- f initialize_traceback ...
- f set_frame ...
- f traceback ...
- C LogoError ... - A generic Logo error. It tracks file position and some of the (Logo) traceback.
- C LogoList ...
-
C
LogoNameError
...
- a description ...
- f __init__ ...
- f initialize_traceback ...
- f traceback ...
- C LogoOutput ...
-
C
LogoSyntaxError
...
- a description ...
- f __init__ ...
- f initialize_traceback ...
- f set_frame ...
- C LogoUndefinedError ...
- f error_for_file ...
- f error_for_list ...
- f logofunc ...
-
m
ide
...
- a Pmw ...
- a root ...
-
C
IDE
...
- f __init__ ...
- f about ...
- f add_command ...
- f add_history ...
- f exit ...
- f run_command ...
- f update_commands ...
- f update_history ...
- C LogoCommunicator ...
- C TurtleSpace ...
- f add_command ...
- f get_canvas ...
- f main ...
-
m
interpreter
...
-
- interpreter for pylogo
- Ian Bicking <ianb@colorstudy.com>
- a StringTypes ...
-
C
BoundUserFunction
...
- a logo_aware ...
- f __init__ ...
-
C
Frame
...
- A local frame. This frame usually has a parent frame, which is
the scope that created this scope (usually via a function call).
This chain implements the dynamic scoping; in a more typical
lexically scoped language, the namespace would be attached to the
container, not the previous caller.
- a prompts ...
- a special_forms ...
- a tokenizer ...
- f __init__ ...
- f add_command ...
- f apply ... - Apply the args to the func. If the function has an attribute logo_aware, which is true, then the first argument passed to the function will be this interpreter object. This allows special functions, like IF or WHILE, to manipulate the interpreter.
- f erase_name ...
- f eval ... - Evaluate a list in this scope.
- f expr ... - Top level expression-getter/evaluator (see also expr_top).
- f expr_inner ... - An 'inner' expression, an expression that does not include infix operators.
- f expr_list ... - Grab a list (the '[' has already been grabbed).
- f expr_top ... - Unlike expr(), this ignores empty lines; should only be used in top-level expressions (including expressions taken from lists).
- f expr_without_error ... - Get a full expression from the tokenizer, execute it, and return the value.
- f function_names ...
- f get_function ...
- f get_nonactor_function ...
- f get_nonactor_variable ...
- f get_variable ...
- f import_function ... - Inputs the function func into the namespace, using the name it was originally defined with. The special attribute logo_name overrides the function name, and aliases provides abbreviations for the function (like FD for FORWARD).
- f import_logo ... - Import a logo file. This executes the file, including any TO statements, putting everything into the normal namespace/scope.
- f import_logo_stream ...
- f import_module ... - Import a module (either a module object, or the string name of the module), moving all of its exported functions into the current namespace (nested namespaces are not supported).
- f input_loop ... - Read-Eval-Print-Repeat loop, i.e., the standard prompt.
- f load_defs ... - Load function definitions from a file. This file should have one function annotation on a line (lines starting with # or ; are comments).
- f make_local ...
- f new ... - Add a new frame, and return that frame.
- f pop_actor ...
- f pop_tokenizer ...
- f push_actor ...
- f push_tokenizer ... - You can stack up multiple tokenizers, as the interpreter goes from evaluating a file to a list to a sublist, etc. New interpreters are created for a new scope.
- f set_function ...
- f set_variable ...
- f set_variable_local ...
- f special_for ... - Special FOR form. Again with the variable name.
- f special_local ... - The special LOCAL form (with unevaluated variables). (Should this be generally greedy?)
- f special_localmake ... - The special LOCALMAKE form
- f special_make ... - The special MAKE form (special because a variable in the first argument isn't evaluated).
- f special_makeattr ...
- f special_tell ...
- f special_to ... - The special TO form.
- f tokenizer__get ... - Gets the current tokenizer.
- f tokenizer_stack ...
- f variable_names ...
-
C
Interpreter
...
- The interpreter gets tokens (from a reader.TrackingStream) and
runs them. It holds the namespace, which is dynamically scoped.
- f __init__ ...
- f apply ... - Apply the args to the func. If the function has an attribute logo_aware, which is true, then the first argument passed to the function will be this interpreter object. This allows special functions, like IF or WHILE, to manipulate the interpreter.
- f eval ... - Evaluate a list in this scope.
- f expr ... - Top level expression-getter/evaluator (see also expr_top).
- f expr_inner ... - An 'inner' expression, an expression that does not include infix operators.
- f expr_list ... - Grab a list (the '[' has already been grabbed).
- f expr_top ... - Unlike expr(), this ignores empty lines; should only be used in top-level expressions (including expressions taken from lists).
- f expr_without_error ... - Get a full expression from the tokenizer, execute it, and return the value.
- f get_function ...
- f get_variable ...
- f import_function ... - Inputs the function func into the namespace, using the name it was originally defined with. The special attribute logo_name overrides the function name, and aliases provides abbreviations for the function (like FD for FORWARD).
- f import_logo ... - Import a logo file. This executes the file, including any TO statements, putting everything into the normal namespace/scope.
- f import_logo_stream ...
- f import_module ... - Import a module (either a module object, or the string name of the module), moving all of its exported functions into the current namespace (nested namespaces are not supported).
- f input_loop ... - Read-Eval-Print-Repeat loop, i.e., the standard prompt.
- f load_defs ... - Load function definitions from a file. This file should have one function annotation on a line (lines starting with # or ; are comments).
- f pop_actor ...
- f pop_tokenizer ...
- f push_actor ...
- f push_tokenizer ... - You can stack up multiple tokenizers, as the interpreter goes from evaluating a file to a list to a sublist, etc. New interpreters are created for a new scope.
- f special_for ... - Special FOR form. Again with the variable name.
- f special_local ... - The special LOCAL form (with unevaluated variables). (Should this be generally greedy?)
- f special_localmake ... - The special LOCALMAKE form
- f special_make ... - The special MAKE form (special because a variable in the first argument isn't evaluated).
- f special_makeattr ...
- f special_tell ...
- f special_to ... - The special TO form.
- f tokenizer__get ... - Gets the current tokenizer.
-
C
RootFrame
...
- The root/global frame object. This holds all the function
definitions, and global variables. All the algorithms end up
being different than for Frame, so they don't even inherit from
each other, though they present the same interface. Huh.
- f __init__ ...
- f add_command ...
- f apply ... - Apply the args to the func. If the function has an attribute logo_aware, which is true, then the first argument passed to the function will be this interpreter object. This allows special functions, like IF or WHILE, to manipulate the interpreter.
- f erase_name ...
- f eval ... - Evaluate a list in this scope.
- f expr ... - Top level expression-getter/evaluator (see also expr_top).
- f expr_inner ... - An 'inner' expression, an expression that does not include infix operators.
- f expr_list ... - Grab a list (the '[' has already been grabbed).
- f expr_top ... - Unlike expr(), this ignores empty lines; should only be used in top-level expressions (including expressions taken from lists).
- f expr_without_error ... - Get a full expression from the tokenizer, execute it, and return the value.
- f function_names ...
- f get_function ...
- f get_nonactor_function ...
- f get_nonactor_variable ...
- f get_variable ...
- f import_function ... - Inputs the function func into the namespace, using the name it was originally defined with. The special attribute logo_name overrides the function name, and aliases provides abbreviations for the function (like FD for FORWARD).
- f import_logo ... - Import a logo file. This executes the file, including any TO statements, putting everything into the normal namespace/scope.
- f import_logo_stream ...
- f import_module ... - Import a module (either a module object, or the string name of the module), moving all of its exported functions into the current namespace (nested namespaces are not supported).
- f input_loop ... - Read-Eval-Print-Repeat loop, i.e., the standard prompt.
- f load_defs ... - Load function definitions from a file. This file should have one function annotation on a line (lines starting with # or ; are comments).
- f make_local ...
- f new ...
- f pop_actor ...
- f pop_tokenizer ...
- f push_actor ...
- f push_tokenizer ... - You can stack up multiple tokenizers, as the interpreter goes from evaluating a file to a list to a sublist, etc. New interpreters are created for a new scope.
- f set_function ...
- f set_variable ...
- f set_variable_local ...
- f special_for ... - Special FOR form. Again with the variable name.
- f special_local ... - The special LOCAL form (with unevaluated variables). (Should this be generally greedy?)
- f special_localmake ... - The special LOCALMAKE form
- f special_make ... - The special MAKE form (special because a variable in the first argument isn't evaluated).
- f special_makeattr ...
- f special_tell ...
- f special_to ... - The special TO form.
- f tokenizer__get ... - Gets the current tokenizer.
- f tokenizer_stack ...
- f variable_names ...
- C UserFunction ... - A function the user defines, using TO. When this function is called, the contents of the TO statement are executed. The contents are not interpreted until then -- they are kept as tokens in a list.
- f arity ... - Get the arity of a function (the number of arguments it takes). If the function has an arity attribute, this will be used as an override, otherwise inspect is used to find the number of arguments.
- f load_module ... - Loads a module given its name, because imp.find_module is annoying.
-
m
logo_turtle
...
-
C
Turtle
...
- f __init__ ...
- f backward ...
- f clear ...
- f clone ...
- f distance ...
- f endfill ...
- f forward ...
- f heading ...
- f hideturtle ...
- f home ...
- f left ...
- f pencolor ...
- f pendown ...
- f penup ...
- f penwidth ...
- f posx ...
- f posy ...
- f right ...
- f setheading ...
- f setx ...
- f setxy ...
- f sety ...
- f showturtle ...
- f startfill ...
- f turtle ...
- f turtlewrite ...
- f allturtles ...
- f createturtle ...
-
C
Turtle
...
- m logodoctest ... - More-or-less like doctest, except with Logo
-
m
objectintrospect
...
-
C
NoDefault
...
- f getlogoattr ...
- f mro ...
- f update_logo_attrs ...
-
C
NoDefault
...
-
m
oobuiltins
...
- C CaptureWriter ...
- C Reader ...
- C Writer ...
- f actor ... - ACTOR object
- f actors ... - ACTORS
- f allopen ... - ALLOPEN
- f close ... - CLOSE filename
- f closeall ... - CLOSEALL
- f erasefile ... - ERASEFILE filename ERF filename
- f filep ... - FILEP filename FILE? filename
- f logo_create ...
- f oobuiltins_main ...
- f openappend ... - OPENAPPEND filename
- f openread ... - OPENREAD filename
- f openwrite ... - OPENWRITE filename
- f prefix ... - PREFIX
- f removeactor ... - REMOVEACTOR object
- f setprefix ... - SETPREFIX string
-
m
reader
...
-
- reader for pylogo
- Ian Bicking <ianb@colorstudy.com>
- a extended_symbols ...
- a generators ...
- a number_re ...
- a only_word_re ...
- a symbols ...
- a white_re ...
- a word_matcher ...
- a word_re ...
-
C
FileTokenizer
...
- An interator over the tokens of a file. Will prompt interactively
if prompt is given.
- f __init__ ...
- f next ...
- f peek ...
- f pop_context ...
- f print_prompt ...
- f push_context ...
-
C
ListTokenizer
...
- This is just a cache of previously tokenized expressions. So that
[a block] can be treated like a stream of tokens. The tokens are
taken from l.
- f __init__ ...
- f next ...
- f peek ...
- f pop_context ...
- f push_context ...
- C TrackingStream ... - A file-like object that also keeps track of rows and columns, for tracebacks.
- f is_word ...
- f main ...
- f tokenize ...
- m script ...
-
m
ucbcompat
...
- C Dribbler ...
-
C
UCBArray
...
- f __getitem__ ...
- f __init__ ...
- f __setitem__ ...
- f allopen ... - ALLOPEN
- f array ... - ARRAY size (ARRAY size origin)
- f arrayp ... - ARRAYP thing ARRAY? thing
- f arraytolist ... - ARRAYTOLIST array
- f backslashedp ... - BACKSLASHEDP char BACKSLASHED? char
- f close ... - CLOSE filename
- f closeall ... - CLOSEALL
- f dequeue ... - DEQUEUE queuename
- f dotsetitem ... - .SETITEM index array value
- f dribble ... - DRIBBLE filename
- f erasefile ... - ERASEFILE filename ERF filename
- f erpls ... - ERPLS
- f gprop ... - GPROP plistname propname
- f listtoarray ... - LISTTOARRAY list (LISTTOARRAY list origin)
- f mdarray ... - MDARRAY sizelist (MDARRAY sizelist origin)
- f mditem ... - MDITEM indexlist array
- f mdsetitem ... - MDSETITEM indexlist array value
- f openappend ... - OPENAPPEND filename
- f openread ... - OPENREAD filename
- f openupdate ... - OPENUPDATE filename
- f openwrite ... - OPENWRITE filename
- f plist ... - PLIST plistname
- f plistp ... - PLISTP name PLIST? name
- f pop ... - POP stackname
- f pprop ... - PPROP plistname propname value
- f prefix ... - PREFIX
- f push ... - PUSH stackname thing
- f queue ... - QUEUE queuename thing
- f quoted ... - QUOTED thing
- f rawascii ... - RAWASCII char
- f remprop ... - REMPROP plistname propname
- f setprefix ... - SETPREFIX string