|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.syntax.BaseENodeBuilder
Untamed:
Field Summary | |
(package private) LexerFace |
myLexer
|
(package private) ConstMap |
myProps
|
Constructor Summary | |
BaseENodeBuilder(ConstMap props,
LexerFace lexer)
Enabled: |
Method Summary | |
void |
antiPocket(String pName)
Enabled: |
FlexList |
append(Object sofar,
Object nexts)
Enabled: |
EExpr |
assign(Object lValue,
Object rValue)
Enabled: |
EExpr |
call(Object recipientExpr,
Object verb,
Object args)
Enabled: |
Pattern |
cdrPattern(Object subs,
Object rest)
Enabled: |
EExpr |
define(Object pattern,
Object rValue)
Enabled: |
(package private) static String |
docComment(Object doco)
|
EExpr |
escape(Object pattern,
Object bodyExpr)
Enabled: |
(package private) static EExpr[] |
exprs(Object vec)
|
Pattern |
finalPattern(Object name,
Object valueGuardExpr)
Enabled: |
EExpr |
hide(Object body)
Enabled: |
(package private) Astro |
ident(Object identOrStr)
|
(package private) String |
idStr(Object identOrStr)
|
EExpr |
ifx(Object condExpr,
Object thenExpr,
Object elseExpr)
Enabled: |
Pattern |
ignore()
Enabled: |
FlexList |
list()
Enabled: |
FlexList |
list(Object a)
Enabled: |
FlexList |
list(Object a,
Object b)
Enabled: |
FlexList |
list(Object a,
Object b,
Object c)
Enabled: |
FlexList |
list(Object a,
Object b,
Object c,
Object d)
Enabled: |
ListPattern |
listPattern(Object subs)
Enabled: |
LiteralExpr |
literal(Object tokenOrData)
Enabled: |
EExpr |
matchBind(Object specimen,
Object pattern)
Enabled: |
Matcher |
matcher(Object matchHead,
Object bodyExpr)
Enabled: |
MsgPatt |
methHead(Object verb,
Object patts,
Object returnGuard)
Enabled: |
EMethodNode |
method(Object doco,
Object msgPatt,
Object bodyExpr)
Enabled: |
(package private) static NounExpr |
noun(Object identOrStr)
XXX should be made properly polymorphic |
(package private) EExpr |
object(String docComment,
String optOName,
EExpr[] impls,
EScript script)
|
ObjDecl |
oDecl(Object doco,
Object optOName,
Object optExtends,
Object auditors)
Enabled: |
private static Pattern[] |
patterns(Object vec)
|
void |
pocket(String pName)
Enabled: |
void |
reserved(String desc)
Enabled: |
EExpr |
send(Object recipientExpr,
Object verb,
Object args)
Enabled: |
EExpr |
sequence(EExpr[] parts)
Enabled: XXX Currently, parts.length must be >= 1 |
EExpr |
slotExpr(Object eExpr)
Enabled: |
Pattern |
suchThat(Object pattern,
Object condExpr)
Enabled: |
(package private) void |
syntaxError(String msg)
|
EExpr |
tryx(Object eExpr,
Object optCatcher,
Object optFinally)
Enabled: |
(package private) static Object[] |
typedArray(Object vec,
Class elementType)
Should be put into a more generic place |
Pattern |
varPattern(Object name,
Object slotGuardExpr)
Enabled: |
EScriptDecl |
vTable(Object optMethods,
Object matchers)
Enabled: |
FlexList |
with(Object sofar,
Object next)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ConstMap myProps
final LexerFace myLexer
Constructor Detail |
public BaseENodeBuilder(ConstMap props, LexerFace lexer)
Method Detail |
static String docComment(Object doco)
static Object[] typedArray(Object vec, Class elementType)
static EExpr[] exprs(Object vec)
private static Pattern[] patterns(Object vec)
static NounExpr noun(Object identOrStr)
void syntaxError(String msg) throws SyntaxException
SyntaxException
public void reserved(String desc)
reserved
in interface BaseEBuilder
public void pocket(String pName)
pocket
in interface BaseEBuilder
public void antiPocket(String pName)
antiPocket
in interface BaseEBuilder
Astro ident(Object identOrStr)
String idStr(Object identOrStr)
public FlexList list()
list
in interface BaseEBuilder
public FlexList list(Object a)
list
in interface BaseEBuilder
public FlexList list(Object a, Object b)
list
in interface BaseEBuilder
public FlexList list(Object a, Object b, Object c)
list
in interface BaseEBuilder
public FlexList list(Object a, Object b, Object c, Object d)
list
in interface BaseEBuilder
public FlexList with(Object sofar, Object next)
with
in interface BaseEBuilder
public FlexList append(Object sofar, Object nexts)
append
in interface BaseEBuilder
public LiteralExpr literal(Object tokenOrData)
literal
in interface BaseEBuilder
public EExpr assign(Object lValue, Object rValue)
assign
in interface BaseEBuilder
public EExpr call(Object recipientExpr, Object verb, Object args)
call
in interface BaseEBuilder
public EExpr send(Object recipientExpr, Object verb, Object args)
send
in interface BaseEBuilder
public EExpr define(Object pattern, Object rValue)
define
in interface BaseEBuilder
public EExpr slotExpr(Object eExpr)
slotExpr
in interface BaseEBuilder
public ObjDecl oDecl(Object doco, Object optOName, Object optExtends, Object auditors)
oDecl
in interface BaseEBuilder
public EExpr escape(Object pattern, Object bodyExpr)
escape
in interface BaseEBuilder
public EExpr hide(Object body)
hide
in interface BaseEBuilder
public EExpr ifx(Object condExpr, Object thenExpr, Object elseExpr)
ifx
in interface BaseEBuilder
public EExpr matchBind(Object specimen, Object pattern)
matchBind
in interface BaseEBuilder
public Matcher matcher(Object matchHead, Object bodyExpr)
matcher
in interface BaseEBuilder
public EMethodNode method(Object doco, Object msgPatt, Object bodyExpr)
method
in interface BaseEBuilder
public MsgPatt methHead(Object verb, Object patts, Object returnGuard)
methHead
in interface BaseEBuilder
public EScriptDecl vTable(Object optMethods, Object matchers)
vTable
in interface BaseEBuilder
EExpr object(String docComment, String optOName, EExpr[] impls, EScript script)
optOName
- may be null (meaning anonymous), a String, a
LiteralString/LiteralTwine (a literal string as an FQN) or a
Pattern representing both the variable to be initialized and the
name part of a FQN.public EExpr sequence(EExpr[] parts)
sequence
in interface BaseEBuilder
public EExpr tryx(Object eExpr, Object optCatcher, Object optFinally)
tryx
in interface BaseEBuilder
public Pattern finalPattern(Object name, Object valueGuardExpr)
finalPattern
in interface BaseEBuilder
public Pattern varPattern(Object name, Object slotGuardExpr)
varPattern
in interface BaseEBuilder
public Pattern ignore()
ignore
in interface BaseEBuilder
public ListPattern listPattern(Object subs)
listPattern
in interface BaseEBuilder
public Pattern cdrPattern(Object subs, Object rest)
cdrPattern
in interface BaseEBuilder
public Pattern suchThat(Object pattern, Object condExpr)
suchThat
in interface BaseEBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |