|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
`{ import o alias foo := bar }.statements[1].aliasedSymbols == `[[foo, bar]]
def boolean.and: b1 and: b2 {
(boolean.and: b1).and: b2
}
`{ def o.m() @[Getter] { 5 } }.statements[1].annotations == `[Getter]
`{ def o.m(a, @b) { b } }.statements[1].arguments == `[a, @b]
o<-m()
, or in code that creates a first-class async msg, for example
def msg := <-m()
.`{ def o.m() { o.n(); 1+2+3 } }.statements[1].bodyExpression == `{o.n(); 1.+(2).+(3)}
{ |quit| ... quit(val) ... }.escape()
The escape control construct passes to its receiver block a function which
when invoked, immediately transfers control back to the caller of escape,
returning the value passed to quit.
`{ import o exclude a, b }.statements[1].excludedSymbols == `[a,b]
`(`(#(m()))).statement.expression == `(m())
`(`(#@(m()))).statement.expression == `(m())
`{ o.x := 5}.statements[1].fieldName == `x
ATSymbol
objects representing
the set of free variables of the Abstract Grammar expression.
ATObject
representing the result of evaluating the code to execute
if the boolean condition is false.
ATObject
representing the result of evaluating either the code to execute
if the boolean condition is false or the one to execute if the boolean condition is true.
`{ import o }.statements[1].importedObjectExpression == `o
`(m()[idx+1]).indexExpression == `(idx.+(1))
this#base_new(ATObject[])
.
`{ def tab[5] { m() } }.statements[1].initializer == `{ m() }
`{ x := 5}.statements[1].name == `x
`{ def o.x := 5 }.statements[1].name == `x
`{ def x := 5 }.statements[1].name == `x
`{ def tab[5] { m() } }.statements[1].name == `tab
this#base_init(ATObject[])
method.
def boolean.or: b1 or: b2 {
(boolean.or: b1).or: b2
}
`{ def o.m() { 5 } }.statements[1].receiver == `o
`(f().m()).getReceiverExpression() == `(f())
`(o.
- reflect:(ATObject) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The reflect: construct.
- reflectOnActor() -
Method in class edu.vub.at.objects.natives.LexicalRoot
- reflectOnActor evaluates to the mirror on the actor executing this code.
- removeSlot(ATSymbol) -
Method in interface edu.vub.at.objects.MirrorRoot
- This structural meta-level operation removes a slot from the
object.
- replace:by:(ATText, ATClosure) -
Method in interface edu.vub.at.objects.Text
- Returns a new text replacing those elements of this text that match a given regular expression with the
value resulting of the evaluation of a given closure.
- require(ATTypeTag, ATClosure, ATBoolean) -
Method in interface edu.vub.at.actors.ActorMirror
- This mechanism is the most basic mechanism to require a service.
- resolve() -
Method in interface edu.vub.at.objects.MirrorRoot
- This behavioural meta-level operation reifies object deserialization.
- respondsTo(ATSymbol) -
Method in interface edu.vub.at.objects.MirrorRoot
- This meta-level method is used to determine whether an object has a
field or method corresponding to the given selector, without actually invoking
or selecting any value associated with that selector.
- retract:(ATFarReference) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The retract: farReference construct.
- root() -
Method in class edu.vub.at.objects.natives.LexicalRoot
- root evaluates to the global lexical scope object.
- round() -
Method in interface edu.vub.at.objects.Numeric
- Returns the closest number to the fraction.
`{ def o.m() { 5 } }.statements[1].selector == `m
`(&x).selector == `x
Example: `(&x:=).selector == `x:=
`(o.
- send(ATObject, ATAsyncMessage) -
Method in interface edu.vub.at.actors.ActorMirror
- This method implements the default asynchronous message sending semantics for
this particular actor.
- send(ATObject, ATAsyncMessage) -
Method in interface edu.vub.at.objects.MirrorRoot
- This behavioural meta-level operation reifies the act of sending
an asynchronous message.
- sendTo(ATObject, ATObject) -
Method in interface edu.vub.at.objects.Message
- Sends this message to a particular receiver object.
- serve() -
Method in interface edu.vub.at.actors.ActorMirror
- This method fetches and processes the next letter from the inbox.
- share:with:(ATObject, ATClosure) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The share:with: object creation primitive.
- share:with:mirroredBy:(ATObject, ATClosure, ATObject) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The share:with:mirroredBy: object creation primitive.
- share:with:taggedAs:(ATObject, ATClosure, ATTable) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The share:with:taggedAs: object creation primitive.
- share:with:taggedAs:mirroredBy:(ATObject, ATClosure, ATTable, ATObject) -
Method in class edu.vub.at.objects.natives.LexicalRoot
- The share:with:taggedAs:mirroredBy: object creation primitive.
- sin() -
Method in interface edu.vub.at.objects.Numeric
- Returns the trigonometric sine of the numeric data type representing an angle in radians.
- sizeExpression() -
Method in interface edu.vub.at.objects.grammar.DefTable
- The size may be any valid AmbientTalk expression that evaluates to a number
Example:
`{ def tab[5] { m() } }.statements[1].sizeExpression == `5
- Splice - Interface in edu.vub.at.objects.grammar
- The ATSplice interface represents the 'splice'
@exp
AG element. - split(ATText) -
Method in interface edu.vub.at.objects.Text
- Splits a text according to the given regular expression.
- sqrt() -
Method in interface edu.vub.at.objects.Numeric
- Returns the positive square root of the numeric data type.
- stackTrace() -
Method in interface edu.vub.at.objects.Exception
- Returns the stack trace in a string-based representation
- stackTrace:=(NATText) -
Method in interface edu.vub.at.objects.Exception
- Assigns a new stack trace to this exception.
- statement() -
Method in interface edu.vub.at.objects.grammar.Quote
- The quoted statement
Example:
`(`(1+2)).statement == `(1.+(2))
- Statement - Interface in edu.vub.at.objects.grammar
- ATStatement is the common interface of all statement AG elements.
- statements() -
Method in interface edu.vub.at.objects.grammar.Begin
- The statements table contains zero or more statements.
- subtractFraction(ATFraction) -
Method in interface edu.vub.at.objects.Numeric
- Returns the value resulting of the subtracting the receiver from a fraction passed as argument.
- subtractNumber(ATNumber) -
Method in interface edu.vub.at.objects.Numeric
- Returns the value resulting of subtracting the receiver from a number passed as argument.
- super() -
Method in interface edu.vub.at.objects.Object
- Bound to the dynamic parent of this object.
- superTypes() -
Method in interface edu.vub.at.objects.TypeTag
- Returns a table with the supertypes of this type tag.
- Symbol - Interface in edu.vub.at.objects.grammar
- The public interface to a symbol reference AG element.
- System - Class in edu.vub.at.objects.natives
- Instances of this class represent the 'system' object,
accessible from the lexical root during execution of 'iat'.
`(m()[idx+1]).tableExpression == `(m())
`{ deftype foo }.statements[1].typeName == `foo
`{ tab[idx] := 5}.statements[1].valueExpression == `5
`{ [ x, y ] := [ y, x ] }.statements[1].valueExpression == `[y, x]
`{ def [ x, y ] := [ y, x ] }.statements[1].valueExpression == `[y, x]
{ booleanCondition }.whileTrue: { body }
which will execute body as long as the boolean condition evaluates to true.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |