Spaces:
Running
Running
File size: 647 Bytes
8f3f8db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | specifying primitives
simulatePrologInContext: aContext
|cg instructions |
cg := SmartSyntaxPluginCodeGenerator new.
parmSpecs keysAndValuesDo:
[:index :each |
instructions := ((parmSpecs at: index)
jscg: cg
prolog: (cg jscgTVarBlock: index)
expr: '<foo>'
index: args size - index).
Compiler new
evaluate: instructions
in: aContext
to: aContext receiver
notifying: nil
ifFail: nil].
instructions := (rcvrSpec
jscg: cg
prolog: [:expr | '^', expr]
expr: '<foo>'
index: args size).
^Compiler new
evaluate: instructions
in: aContext
to: aContext receiver
notifying: nil
ifFail: nil |