Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- Atom<T> - Class in com.bhoffpauir.blisp.lib
-
In LISP, atoms are scalar values. blisp uses a hybrid approach to atoms, utilizing a base
Atom
class with generics to handle basic types while subclassingAtom
for more complex or specific types (e.g.,SymbolAtom
). - Atom(T) - Constructor for class com.bhoffpauir.blisp.lib.Atom
-
Constructs an
Atom
with the specified value.
B
- BooleanAtom - Class in com.bhoffpauir.blisp.lib
-
Represents a Boolean atom in blisp.
- BooleanAtom(Boolean) - Constructor for class com.bhoffpauir.blisp.lib.BooleanAtom
-
Constructs a
BooleanAtom
with the specified Boolean value.
C
- call(Evaluator, List<Object>) - Method in class com.bhoffpauir.blisp.lib.Lambda
-
Calls this lambda with the provided arguments, using the given evaluator.
- com.bhoffpauir.blisp.interp - package com.bhoffpauir.blisp.interp
- com.bhoffpauir.blisp.lib - package com.bhoffpauir.blisp.lib
- com.bhoffpauir.blisp.lib.exceptions - package com.bhoffpauir.blisp.lib.exceptions
- compareTo(NumberAtom) - Method in class com.bhoffpauir.blisp.lib.NumberAtom
-
Compares this number atom with another based on their numeric values.
- compareTo(StringAtom) - Method in class com.bhoffpauir.blisp.lib.StringAtom
-
Compares this
StringAtom
to anotherStringAtom
, using lexicographic ordering. - compareTo(SymbolAtom) - Method in class com.bhoffpauir.blisp.lib.SymbolAtom
-
Compares this
SymbolAtom
to another symbol, using lexicographic ordering. - createGlobalEnv() - Static method in class com.bhoffpauir.blisp.lib.Environment
-
Factory method for creating global environments.
D
- define(SymbolAtom, Object) - Method in class com.bhoffpauir.blisp.lib.Environment
-
Define a new symbol binding.
- define(String, Object) - Method in class com.bhoffpauir.blisp.lib.Environment
-
Define a new symbol binding.
- define(String, Object) - Method in class com.bhoffpauir.blisp.lib.Evaluator
E
- Environment - Class in com.bhoffpauir.blisp.lib
- Environment() - Constructor for class com.bhoffpauir.blisp.lib.Environment
- Environment(Environment) - Constructor for class com.bhoffpauir.blisp.lib.Environment
- equals(Object) - Method in class com.bhoffpauir.blisp.lib.BooleanAtom
-
Checks if this Boolean atom is equal to another object.
- equals(Object) - Method in class com.bhoffpauir.blisp.lib.ListAtom
-
Tests for equality between this list atom and another object.
- equals(Object) - Method in class com.bhoffpauir.blisp.lib.NumberAtom
-
Tests for equality between this number atom and another.
- equals(Object) - Method in class com.bhoffpauir.blisp.lib.StringAtom
-
Tests equality of string atoms based on their value.
- equals(Object) - Method in class com.bhoffpauir.blisp.lib.SymbolAtom
-
Tests equality of symbols, ignoring case.
- evaluate(Object, Environment) - Method in class com.bhoffpauir.blisp.lib.Evaluator
- Evaluator - Class in com.bhoffpauir.blisp.lib
- Evaluator() - Constructor for class com.bhoffpauir.blisp.lib.Evaluator
- extendedPrint - Static variable in class com.bhoffpauir.blisp.lib.Atom
-
A flag indicating whether extended information should be printed when representing the atom as a string.
G
- getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.Atom
-
Returns a regular expression
Pattern
that matches the format of valid values for this atom type. - getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.BooleanAtom
-
Returns a regular expression
Pattern
that matches valid Boolean values. - getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.Lambda
-
Throws an
UnsupportedOperationException
as regular expressions do not apply to lambdas. - getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.ListAtom
-
Returns a regular expression pattern for matching list atoms.
- getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.NumberAtom
-
Returns the regular expression pattern to validate number formats, including integers, decimals, and scientific notation.
- getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.StringAtom
-
Provides a regular expression pattern that matches valid string literals in blisp.
- getRegexPattern() - Method in class com.bhoffpauir.blisp.lib.SymbolAtom
-
Provides a regular expression pattern that matches valid symbols according to the symbol rules.
- getValue() - Method in class com.bhoffpauir.blisp.lib.Atom
-
Returns the value of this atom.
I
- InterpreterMode - Enum Class in com.bhoffpauir.blisp.interp
-
Enumeration representing the runtime modes of the interpreter.
- isSymbolStart(char) - Static method in class com.bhoffpauir.blisp.lib.Tokenizer
-
Check if a character can be the start of a symbol.
L
- Lambda - Class in com.bhoffpauir.blisp.lib
-
Represents a Lambda function in blisp.
- Lambda(List<SymbolAtom>, ListAtom, Environment) - Constructor for class com.bhoffpauir.blisp.lib.Lambda
-
Constructs a lambda with the given parameters, body, and parent environment.
- LispRuntimeException - Exception Class in com.bhoffpauir.blisp.lib.exceptions
-
Base for all blisp runtime exceptions.
- LispRuntimeException(String) - Constructor for exception class com.bhoffpauir.blisp.lib.exceptions.LispRuntimeException
- ListAtom - Class in com.bhoffpauir.blisp.lib
-
Atom representation of a list in blisp.
- ListAtom(List<Object>) - Constructor for class com.bhoffpauir.blisp.lib.ListAtom
-
Constructs a ListAtom with the given list value.
- lookup(String) - Method in class com.bhoffpauir.blisp.lib.Environment
M
- main(String[]) - Static method in class com.bhoffpauir.blisp.interp.Main
- Main - Class in com.bhoffpauir.blisp.interp
-
Interpreter implementation for the blisp language supporting both interactive REPL and script file execution modes.
- Main() - Constructor for class com.bhoffpauir.blisp.interp.Main
- MAX_TOKEN_LENGTH - Static variable in exception class com.bhoffpauir.blisp.lib.exceptions.UnknownTokenException
N
- nil - Static variable in class com.bhoffpauir.blisp.lib.SymbolAtom
-
Predefined symbol atom representing
nil
. - nullableLookup(String) - Method in class com.bhoffpauir.blisp.lib.Environment
- NumberAtom - Class in com.bhoffpauir.blisp.lib
-
Atom representation for numbers in blisp.
- NumberAtom() - Constructor for class com.bhoffpauir.blisp.lib.NumberAtom
-
Default constructor initializing the number atom to 0.0.
- NumberAtom(Double) - Constructor for class com.bhoffpauir.blisp.lib.NumberAtom
-
Constructor that initializes the number atom with the given value.
P
- parse() - Method in class com.bhoffpauir.blisp.lib.Parser
- parseExpression() - Method in class com.bhoffpauir.blisp.lib.Parser
- Parser - Class in com.bhoffpauir.blisp.lib
- Parser(List<String>) - Constructor for class com.bhoffpauir.blisp.lib.Parser
- Procedure - Interface in com.bhoffpauir.blisp.lib
-
A functional interface representing a procedure or function in blisp.
R
- REPL - Enum constant in enum class com.bhoffpauir.blisp.interp.InterpreterMode
S
- SCRIPT - Enum constant in enum class com.bhoffpauir.blisp.interp.InterpreterMode
- SCRIPT_AND_REPL - Enum constant in enum class com.bhoffpauir.blisp.interp.InterpreterMode
- setExtendedPrint(boolean) - Static method in class com.bhoffpauir.blisp.lib.Atom
-
Sets the extended print mode for atom printing, enabling or disabling extra information.
- StringAtom - Class in com.bhoffpauir.blisp.lib
-
Represents a string atom in blisp, using
String
as its value. - StringAtom() - Constructor for class com.bhoffpauir.blisp.lib.StringAtom
-
Constructs a new
StringAtom
with an empty string value. - StringAtom(String) - Constructor for class com.bhoffpauir.blisp.lib.StringAtom
-
Constructs a new
StringAtom
with the specified string value. - SymbolAtom - Class in com.bhoffpauir.blisp.lib
-
Represents a symbolic atom in a blisp, adhering to specific rules for valid symbols.
- SymbolAtom(String) - Constructor for class com.bhoffpauir.blisp.lib.SymbolAtom
-
Constructs a new
SymbolAtom
with the specified value.
T
- toggleExtenedPrint() - Static method in class com.bhoffpauir.blisp.lib.Atom
-
Toggles the extended print mode, which determines whether extra information is included when printing atoms.
- tokenize() - Method in class com.bhoffpauir.blisp.lib.Tokenizer
- Tokenizer - Class in com.bhoffpauir.blisp.lib
-
The
Tokenizer
takes an syntax string as input. - Tokenizer(String) - Constructor for class com.bhoffpauir.blisp.lib.Tokenizer
- toString() - Method in class com.bhoffpauir.blisp.lib.Atom
-
Provides a string representation of this atom.
- toString() - Method in class com.bhoffpauir.blisp.lib.BooleanAtom
-
Provides a string representation of this Boolean atom.
- toString() - Method in class com.bhoffpauir.blisp.lib.Environment
- toString() - Method in class com.bhoffpauir.blisp.lib.Lambda
-
Returns a string representation of this lambda, displaying its parameters and body.
- toString() - Method in class com.bhoffpauir.blisp.lib.ListAtom
-
Returns the string representation of the list in a Lisp-style format.
- toString() - Method in class com.bhoffpauir.blisp.lib.NumberAtom
-
Returns the string representation of the number.
- toString() - Method in class com.bhoffpauir.blisp.lib.StringAtom
-
Returns a string representation of the string atom.
- toString() - Method in class com.bhoffpauir.blisp.lib.SymbolAtom
-
Returns a string representation of the symbol.
U
- UnbalancedParenthesisException - Exception Class in com.bhoffpauir.blisp.lib.exceptions
-
Runtime exception thrown when the parse cannot find a closing parenthesis.
- UnbalancedParenthesisException() - Constructor for exception class com.bhoffpauir.blisp.lib.exceptions.UnbalancedParenthesisException
- UnbalancedParenthesisException(String) - Constructor for exception class com.bhoffpauir.blisp.lib.exceptions.UnbalancedParenthesisException
- UnboundSymbolException - Exception Class in com.bhoffpauir.blisp.lib.exceptions
-
Runtime exception thrown when the evaluator encounters a symbol that doesn't exist in the environment.
- UnboundSymbolException(String) - Constructor for exception class com.bhoffpauir.blisp.lib.exceptions.UnboundSymbolException
- UnknownTokenException - Exception Class in com.bhoffpauir.blisp.lib.exceptions
-
Runtime exception thrown when the tokenizer encounters input that it cannot discern.
- UnknownTokenException(String) - Constructor for exception class com.bhoffpauir.blisp.lib.exceptions.UnknownTokenException
V
- value - Variable in class com.bhoffpauir.blisp.lib.Atom
-
The value held by this atom, of type
T
. - valueOf(String) - Static method in enum class com.bhoffpauir.blisp.interp.InterpreterMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.bhoffpauir.blisp.interp.InterpreterMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form