PH Logo
Logo intepreter modeled after UCB Logo.
Public Member Functions | Static Public Member Functions
phlogo::Verbs Class Reference

#include <Verbs.h>

List of all members.

Public Member Functions

 Verbs (Interpreter *itp, World *world)
void run (TokenStream *ts)
FunccreateFunction (const std::string &name, const std::string &args)
const std::map< std::string,
std::string > & 
getVerbTokenMap ()
const std::map< std::string,
std::string > & 
getFuncTokenMap ()
void removeFunction (const std::string &name)
void removeFunctions ()

Static Public Member Functions

static bool isVariable (const std::string &s)
static std::string getVariable (const std::string &s)
static size_t safeNext (size_t i, size_t end)

Detailed Description

The verbs for our LOGO.

Definition at line 30 of file Verbs.h.


Member Function Documentation

Func * phlogo::Verbs::createFunction ( const std::string &  name,
const std::string &  args 
)

Create a function.

Definition at line 283 of file Verbs.cpp.

void phlogo::Verbs::run ( TokenStream ts)

Given an interpreter and a list of words from a sentence, returning the next word after the end of the current command.

Definition at line 48 of file Interpreter.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions