The Inbox: Compiler-ct.453.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Compiler-ct.453.mcz

commits-2
A new version of Compiler was added to project The Inbox:
http://source.squeak.org/inbox/Compiler-ct.453.mcz

==================== Summary ====================

Name: Compiler-ct.453
Author: ct
Time: 14 November 2020, 7:38:45.898394 pm
UUID: 03299c17-0fde-3e45-b71c-4fff380bd6ab
Ancestors: Compiler-eem.451

Adds Compiler shorthands for non-interactive compilation of a textOrStream, as mentioned in http://forum.world.st/The-Inbox-Compiler-ct-452-mcz-tp5124691p5124714.html.

=============== Diff against Compiler-eem.451 ===============

Item was added:
+ ----- Method: Compiler>>compile:in: (in category 'public access') -----
+ compile: textOrStream in: aClass
+ "Answer a MethodNode for the argument, textOrStream. The MethodNode is the root of a parse tree. It can be told to generate a CompiledMethod to be installed in the method dictionary of the argument, aClass."
+
+ ^ self
+ compile: textOrStream
+ in: aClass
+ notifying: nil
+ ifFail: nil!

Item was added:
+ ----- Method: Compiler>>compileNoPattern:in: (in category 'public access') -----
+ compileNoPattern: textOrStream in: aClass
+ "Similar to #compile:in::, but the compiled code is
+ expected to be a do-it expression, with no message pattern."
+
+ ^ self
+ compileNoPattern: textOrStream
+ in: aClass
+ notifying: nil
+ ifFail: nil!