"Safely" calls this closure.
Calls a subroutine/built-in function using this scripts
the total number of times this function has been called
A check object is the internal atomic step representing a predicate condition.
Constructs a check object, call by the sleep engine.
once an error is checked using this function, it is cleared, the orignal error message is returned as well
A class that provides a bunch of static methods for checking a stream of
sleep tokens for a certain lexical structure.
handles our closing semantices i.e.
Closes all of the reader's / writer's opened by this IOObject.
Generates code for the parser.
this function is used internally by the sleep interpreter to collect profiler statistics
when DEBUG_TRACE_CALLS or DEBUG_TRACE_PROFILE_ONLY is enabled
A read only scalar array for wrapping data structures that implement the java.util.Collection interface.
an identifier for the script file.
used to compare this statistic to other statistics for the sake of sorting
Compiles the translation pattern.
Compiles the translation pattern.
compiles the specified script file
compiles the specified script file
compiles a script using the specified stream as a source
compiles the specified script into a runnable block
The ConsoleImplementation is the "engine" behind the sleep console.
Creates an implementation of the sleep console.
Creates an implementation of the sleep console that shares what your application is already using.
Dummy implementation, does nothing really.
print a message to the console with no newline
print a message to the console with no newline
Dummy implementation, does nothing.
print a message to the console with a newline
print a message to the console with a newline
a necessary interface for creating a front end to the sleep console.
Dummy implementation, always returns null.
read a message in from the console.
read a message in from the console.
converts the one character class description to the specified Class type, i.e.
create a clone of this scalar's value.
create a clone of this scalar's value.
create a clone of this scalar's value.
create a clone of this scalar's value.
create a clone of this scalar's value.
returns which variable environment is used to store non-global / non-local variables.
returns which variable environment is used to temporarily store local variables.
A class providing static methods for constructing an atomic step of a specific type
Get - class sleep.engine.atoms.
Get
Returns the actual non-array/non-hash value this scalar contains.
Returns an approximated line number for the steps in this block object...
Returns an approximate range of line numbers for the steps in this block object.
returns a scalar array referenced by this scalar iff this scalar contains an array reference
grab a sleep array, if the stack is empty a scalar array with no elements will be returned.
returns a Scalar variable containing a SLEEP array as its value (everything in SLEEP is stored as a Scalar
Creates a scalar with the specified ScalarArray as the value
Determines the primitive type of the specified array.
An easy way to make your programs data structures available in the script environment.
Retrieves a scalar from the hashtable.
returns the current closure variable scope
returns the closure level variables for this specific script environment
return an isolated snippet of code from where the error occured
returns an IOObject that represents stdin/stdout to Sleep's I/O API.
Returns the data associated with the particular key for this context.
Returns the data associated with the particular key for this context.
returns the current count data associated with this semaphore.
obtain the filename of the current source of execution
retrieve the debug flags for this script
return a best guess description of what the error in the code might actually be
grab a double, if the stack is empty the default value will be returned
returns the null scalar, which will always be equal to 0, "", and null simultaneously.
Returns the environment for this script.
returns the environment stack used for temporary calculations and such.
All of the errors are stored in a linked list.
returns a File object from a string argument, the path in the string argument is transformed such
that the character / will refer to the correct path separator for the current OS.
Convienence method to return the script environment of the first script tht was loaded, returns null if no scripts are loaded
retrieves an executable Function object from the stack.
extracts a callable Function from the passed in Scalar.
returns the global variable scope
returns a scalar hash referenced by this scalar iff this scalar contains a hash reference
grab a sleep hash, if the stack is empty a scalar hash with no members will be returned.
returns an empty hashmap scalar
Creates a scalar with the specified ScalarHash as the value
An easy way to make your programs data structures available in the script environment.
return the highest line number associated with this block
returns the last line number that this step is associated with (assuming it is
associated with multiple lines
Returns the ascii data reader
Returns the latest hooking point into the input stream
grab an integer, if the stack is empty the default value will be returned
creates an IO handle scalar suitable for use with the sleep IO API.
grabs a scalar iterator, this can come from either an array or a closure called continuously until $null is returned.
Obtain the key portion of this pair
Pops a Key/Value pair object off of the argument stack.
returns the line number in the source script where the runtime error/warning occured
returns the line number this step is associated with
return the line number in the file where the error occured.
Generate a java.util.List from a scalar array.
Generate a java.util.List from a scalar array.
returns the current local variable scope
grab a long, if the stack is empty the default value will be returned
return the lowest line number associated with this block
returns the first line number that this step is associated with (assuming it is
associated with multiple lines
Generate a java.util.Map from a scalar hash.
Generate a java.util.Map from a scalar hash.
returns a short synopsis of what the warnng is
Returns a minimal string representation of the errors within this exception
returns the identifier representing the source of the script we're parsing
Returns the name of this script (typically a full pathname) as a String
returns just the filename of the source script
grab an object, if the stack is empty then null will be returned.
Returns the latest hooking point into the output stream
Returns the owning script instance
Returns a sorted (in order of total ticks used) list of function call statistics for this
script environment.
Returns the current console proxy being used
Returns the binary data reader
Returns the compiled form of this script
Returns the runnable block of code associated with this closure
if x is true, the value will be 1, if x is false the value will be the empty scalar
constructs a string scalar with value x interpreted as an array of unsigned bytes
constructs a string scalar with value x interpreted as an array of unsigned bytes
returns a double scalar with value x
returns a double scalar (coverted from the float) with value x
returns an int scalar with value x
returns a long scalar with value x
returns an object scalar with value x
returns an int scalar (coverted from the short) with value x
Forces a copy of the value of the passed in scalar to be made.
grab a scalar, if the stack is empty the empty/null scalar will be returned.
returns a scalar from this scripts environment
returns a string scalar with value x
returns the specified scalar, if scalarExists says it is in the environment, this method has to return a scalar
Returns the specified scalar, looking at each scope in order.
retrieves the appropriate Variable container that has the specified key.
Returns this scripts runtime environment
returns a reference to the script associated with this environment
returns the full path for the source script
Returns a linked list of all loaded ScriptInstance objects
Returns a HashMap with all loaded scripts, the key is a string which is just the filename, the value is a ScriptInstance
object
A convienence method to determine the set of scripts to "load" based on a passed in set of scripts that are currently
configured.
A convienence method to determine the set of scripts to "unload" based on a passed in set of scripts that are currently
configured.
returns the variable manager for this script
Returns the variable container used by this script
Query the Sleep classpath.
Returns the source identifier for this block
returns the stream referenced by this IOObject
returns the file referenced by this IOObject
return the actual source of this IO for scripters to query using HOES
returns the Process object used by this IO implementation
returns the ScriptInstance object that was the source of this runtime error
returns the socket used for this connection
Returns a string representation of where in the source code this block originated from
grab a string, if the stack is empty or if the value is null the default value will be returned.
returns the thread associated with this IOObject
returns a scalar token associated with this IOObject.
Obtain the value portion of this pair
Returns the container for the scalars value.
Returns the variable container for this closures
grab a sleep array, if the grabbed array is a readonly array, a copy is returned.
Returns the binary data writer
a general pass over the list of tokens, we create terms and then pass over them creating combined terms
breaks down the token into sub tokens that are one "term" wide, in the case of blocks separated by ;
breaks down the token into sub tokens that are one "term" wide, a termi in the case of parameters it uses ,
a general pass over the list of tokens, we create terms and then pass over them creating combined terms
aquires this semaphore by attempting to decrement the count.
Parses the specified code into a runnable block.
initialize the parser with the code you want me to work with
initialize the parser with the code you want me to work with
This class offers access to modify some settings within the sleep parser.
checks if the first token is potentially a class literal, if it is creates an
object scalar for it.
path to search for jar files imported using [import * from: *] syntax
discards the current closure variable scope
discards the current local variable scope, making the previous local scope the current local scope again
remove the latest source information from the source stack
A predicate is an operator used inside of comparisons.
Predicate environments are similar to normal keyword environments except instead of binding commands to an identifier
they are bound to a predicate condition.
Prints out a line of text with no newline character appended
print a nicely formatted version of the script errors to the specified stream
Prints out a line of text with a newline character appended
Dumps the profiler statistics to the specified stream
a convienence method that formats and writes each syntax error to the proxy output
fired when a runtime warning has occured.
fired when a runtime warning has occured.
A container for a profile statistic about a sleep function
pushes the specified variables into this closures level, once the closure has executed this should be popped
starts a new local variable scope.
makes the specified variable container active for the local scope.
push source information onto the source stack
puts a scalar into this scripts environment
puts a scalar into the global scope
put a scalar into this variable environment
Saves a serialized version of the compiled script to scriptname.bin.
Saves a serialized version of the ScriptInstance si to the specified output stream
A scalar is the universal data type for sleep variables.
This interface lets you implement your own data structure behind a scalar
array.
true if a scalar named key exists in this variable environment
This interface lets you create your own scalar hash implementation.
This interface makes it possible to create a new scalar type.
The compiled sleep code for this script, the ScriptLoader will set this value upon loading a script.
This class contains methods for accessing the data stack, return value of a function, and the environment hashtable
for a script.
Not recommended that you instantiate a script environment in this way
Instantiate a new script environment with the specified environment (can be shared), and the specified ScriptInstance
Every piece of information related to a loaded script.
Constructs a new script instance
Constructs a script instance, if the parameter is null a default implementation will be used.
Constructs a script instance, if either of the parameters are null a default implementation will be used.
called when a script is loaded
called when a script is loaded
called when a script is loaded
called when a script is loaded
called when a script is loaded
called when a script is loaded
The ScriptLoader is a convienence container for instantiating and managing ScriptInstances.
initializes the script loader
loaded scripts except referable by key
called when a script is unloaded
called when a script is unloaded
called when a script is unloaded
called when a script is unloaded
called when a script is unloaded
called when a script is unloaded
Maintains variables and variable scopes for a script instance.
Initializes this ScriptVariables container using a DefaultVariable object for default variable storage
Initializes this class with your version of variable storage
A package for all information related to a runtime script warning.
the script instance that this is the environment for
A sleep synchronization primitive.
initializes this semaphore with the specified initial count
Closes down the output streams effectively sending an end of file message to the reading end.
If charset conversion is enabled and charset is set, then the stream will be read using specified charset.
Java by default maps characters from an 8bit ascii file to an internal 32bit unicode representation.
Sets up the true and false choices, again this is handled by the sleep engine
returns the closure level variables for this specific script environment
Use this function to save some meta data for this particular closure context, passing null for value will
remove the key from the metadata for this context
set the debug flags for this script
set the charset to be used for all unicode aware reads/writes from/to this stream
Sets the environment Hashtable this script is to use.
The Sleep script loader can optionally cache parsed script files once they are loaded.
Sets the line number in code where this check object occurs, again called by the sleep engine
convience method for the code generator to set the line number.
Sets the name of this script
Sets up the parent of this script (in case it is being run via &fork()).
Sets up the implementation of the consoles input/output facilities
Puts the specified scalar in a specific scope
Sets the variable container to be used by this script
set the thread used for this IOObject (currently used to allow a script to wait() on the threads completion)
sets the scalar token associated with this IOObject.
Flag this script as unloaded
clones the value from the specified scalar and gives this scalar a copy of the value
set the value of this scalar container to a scalar array
set the value of this scalar container to a scalar hash
set the value of this scalar container to a scalar value of some type
Sets the variable environment for this closure
fires this debug message via a runtime warning complete with line number of current step
does a direct skip of n characters, use only when you know what the chars are..
This package contains the default bridges distributed with sleep.
Integrating the Sleep Console
The sleep console is an interactive console for loading and unloading sleep scripts.
A date stamp of this Sleep release in YYYYMMDD format
A string description of this Sleep release
Creates a new Sleep Closure, with a brand new set of internal variables.
Creates a new Sleep Closure that uses the specified variable container for its internal variables
This class contains generalized utilities for instantiating/wrapping data into the sleep Scalar type.
an identifier/tag/whatever identifying the source of this block (i.e.
The writeable source for this IO object
how many stacks does this damned class include?
start - field in class sleep.engine.atoms.
Goto
The root of all atomic steps.
the string value of this scalar
A class containing syntax error information.
construct a syntax error object, but enough about me...
construct a syntax error object, but enough about me...
Default implementation of the console proxy class.
the total number of ticks consumed by this function call
as much as possible this is a String with a line number associate with it (aka hint)
a list of all of the parser warnings
Returns a string representation of the Abstract Syntax Tree (AST).
Returns a string representation of this object
convert the scalar to a string
Return a string representation of this key/value pair
convert the scalar to a string
convert the scalar to a string
convert the scalar to a string
convert the scalar to a string
returns a string in the form of (total time used in seconds)s (total calls made) @(line number) (function description)
returns a nicely formatted string representation of this runtime warning.
returns a nice string representation of this semaphore
Information about this closure in the form of &closure[:]#
Returns a string representation of this transliteration pattern...
Returns a simple string representation of the errors within this exception
Converts this object to a string, used by the sleep engine for constructing an AST like thing
returns a string representation of this atomic step
Returns a generic string version of this closure without id information
Applies this Transliteration to the specified text.
This class provides a character translation utility similar to the UNIX tr command.