-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fniephaus/python-plugin'
# Conflicts: # .travis.yml # rsqueakvm/plugins/plugin.py # rsqueakvm/plugins/profiler_plugin.py # rsqueakvm/plugins/ruby_plugin.py # rsqueakvm/plugins/tailcall_plugin.py
- Loading branch information
Showing
544 changed files
with
5,868 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /usr/bin/env python | ||
|
||
import sys | ||
from os import path | ||
from environment import cp, config # import with side effects | ||
|
||
from rsqueakvm.util import system | ||
|
||
if __name__ == "__main__": | ||
try: | ||
plugins = next(arg for arg in sys.argv | ||
if arg.startswith("--plugins=")) | ||
sys.argv.remove(plugins) | ||
except StopIteration: | ||
pass | ||
try: | ||
plugin_dir = next(arg for arg in sys.argv | ||
if arg.startswith("--plugin-dir=")) | ||
sys.argv.remove(plugin_dir) | ||
except StopIteration: | ||
print "No plugin directory provided via --plugin-dir=<plugin directory>" | ||
sys.exit(1) | ||
if plugins: | ||
plugins = plugins.split("=")[1] | ||
system.optional_plugins = plugins | ||
plugin_dir = plugin_dir.split("=")[1] | ||
sys.argv.append("-s") | ||
sys.argv.append("-vv") | ||
sys.argv.append(path.join( | ||
path.dirname(__file__), "..", | ||
"rsqueakvm", "test", "plugins", plugin_dir)) | ||
|
||
import pytest | ||
exit(pytest.main(args=sys.argv[1:])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,3 +275,4 @@ images/ | |
.build/rply | ||
.build/topaz | ||
docs/_build | ||
rsqueakvm/test/images/pypy.image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } |
Empty file.
5 changes: 5 additions & 0 deletions
5
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/availableLanguages.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
helpers | ||
availableLanguages | ||
^ (self subclasses collect: [ :ea | ea asString ]) sorted | ||
inject: (OrderedCollection with: #Smalltalk) | ||
into: [ :coll :ea | coll add: ea asSymbol; yourself ] |
9 changes: 9 additions & 0 deletions
9
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/compilePrimitivesIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
initialize-release | ||
compilePrimitivesIn: newClass | ||
| primitiveSelectors | | ||
self flag: #instanceSidePrimitives. | ||
primitiveSelectors := ForeignLanguage class organization listAtCategoryNamed: 'system primitives'. | ||
primitiveSelectors do: [:selector | | template | | ||
template := (ForeignLanguage class >> selector) getSource asString. | ||
newClass class compile: ( | ||
template copyReplaceAll: '{ForeignLanguage}' with: newClass name)] |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/debuggerPrintItem.on..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
debuggerPrintItem: pyFrame on: aStream | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
...ory/ForeignLanguage-Core.package/ForeignLanguage.class/class/evaluateExpression.in.to..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execution | ||
evaluateExpression: selection in: aContext to: aReceiver | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/fileExtension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source code | ||
fileExtension | ||
self subclassResponsibility |
8 changes: 8 additions & 0 deletions
8
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/getContentsOf..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
helpers | ||
getContentsOf: aFileName | ||
| stream data | | ||
stream := StandardFileStream oldFileNamed: aFileName. | ||
stream := MultiByteFileStream newFrom: stream. | ||
data := stream contents. | ||
stream close. | ||
^ data |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/getFilename..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
getFilename: foreignFrame | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/getSource..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source code | ||
getSource: foreignFrame | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/pcRange..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
pcRange: foreignFrame | ||
self subclassResponsibility |
10 changes: 10 additions & 0 deletions
10
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/persistEvalCode..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source code | ||
persistEvalCode: aSource | ||
| directory filename stream | | ||
directory := 'eval', FileDirectory pathNameDelimiter. | ||
filename := directory, Time millisecondClockValue, self fileExtension. | ||
stream := StandardFileStream forceNewFileNamed: filename. | ||
stream := MultiByteFileStream newFrom: stream. | ||
stream write: aSource. | ||
stream close. | ||
^ filename |
4 changes: 4 additions & 0 deletions
4
...ignLanguage-Core.package/ForeignLanguage.class/class/primBreakOnExceptionsDuringSends..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
system primitives | ||
primBreakOnExceptionsDuringSends: aBool | ||
<primitive: 'breakOnExceptionsDuringSends' module: '{ForeignLanguage}Plugin'> | ||
self primitiveFailed. |
4 changes: 4 additions & 0 deletions
4
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/primEval..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
system primitives | ||
primEval: aString | ||
<primitive: 'eval' module: '{ForeignLanguage}Plugin'> | ||
self primitiveFailed. |
4 changes: 4 additions & 0 deletions
4
...ory/ForeignLanguage-Core.package/ForeignLanguage.class/class/primRestartSpecificFrame..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
system primitives | ||
primRestartSpecificFrame: foreignFrame | ||
<primitive: 'restartSpecificFrame' module: '{ForeignLanguage}Plugin'> | ||
self primitiveFailed. |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/pygmentsLexer.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
styling | ||
pygmentsLexer | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/restartFrame.with..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
restartFrame: foreignFrame with: aSource | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/sourceCodeTemplate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
styling | ||
sourceCodeTemplate | ||
self subclassResponsibility |
10 changes: 10 additions & 0 deletions
10
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/stylerFormat..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
styling | ||
stylerFormat: aText | ||
"Perform any formatting of aText necessary and answer either aText, or a formatted copy of aText" | ||
|
||
aText asString = Object sourceCodeTemplate | ||
ifTrue:[ | ||
"the original source code template does not parse, | ||
replace it with one that does" | ||
^ self sourceCodeTemplate asText]. | ||
^aText |
6 changes: 6 additions & 0 deletions
6
...ass/class/subclass.instanceVariableNames.classVariableNames.poolDictionaries.category..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
initialize-release | ||
subclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat | ||
| newClass | | ||
newClass := super subclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat. | ||
self compilePrimitivesIn: newClass. | ||
^ newClass |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/tempNamesIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
tempNamesIn: foreignFrame | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/tempVariableAt.in..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
debugging | ||
tempVariableAt: anIndex in: pyFrame | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguage.class/class/vmSpeaksLanguage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
helpers | ||
vmSpeaksLanguage | ||
self subclassResponsibility |
25 changes: 25 additions & 0 deletions
25
repository/ForeignLanguage-Core.package/ForeignLanguage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"class" : { | ||
"availableLanguages" : "fn 3/14/2017 11:15", | ||
"compilePrimitivesIn:" : "fn 5/6/2017 13:20", | ||
"debuggerPrintItem:on:" : "fn 3/16/2017 22:31", | ||
"evaluateExpression:in:to:" : "fn 3/21/2017 11:32", | ||
"fileExtension" : "fn 3/17/2017 10:20", | ||
"getContentsOf:" : "fn 3/27/2017 21:54", | ||
"getFilename:" : "fn 4/2/2017 19:32", | ||
"getSource:" : "fn 3/16/2017 21:57", | ||
"pcRange:" : "fn 3/16/2017 22:03", | ||
"persistEvalCode:" : "fn 3/17/2017 10:23", | ||
"primBreakOnExceptionsDuringSends:" : "fn 11/13/2017 18:09", | ||
"primEval:" : "fn 4/28/2017 15:30", | ||
"primRestartSpecificFrame:" : "fn 4/28/2017 15:31", | ||
"pygmentsLexer" : "fn 5/16/2017 17:47", | ||
"restartFrame:with:" : "fn 3/16/2017 21:57", | ||
"sourceCodeTemplate" : "fn 3/14/2017 11:23", | ||
"stylerFormat:" : "fn 3/14/2017 11:21", | ||
"subclass:instanceVariableNames:classVariableNames:poolDictionaries:category:" : "fn 4/28/2017 16:00", | ||
"tempNamesIn:" : "fn 3/16/2017 22:45", | ||
"tempVariableAt:in:" : "fn 3/16/2017 22:44", | ||
"vmSpeaksLanguage" : "fn 3/14/2017 11:31" }, | ||
"instance" : { | ||
} } |
14 changes: 14 additions & 0 deletions
14
repository/ForeignLanguage-Core.package/ForeignLanguage.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "ForeignLanguage-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "ForeignLanguage", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/class/isVariable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
isVariable | ||
^ false |
3 changes: 3 additions & 0 deletions
3
...tory/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/allInstVarNames.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
abstract | ||
allInstVarNames | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/asSmalltalk.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
abstract | ||
asSmalltalk | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
abstract | ||
class | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/className.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
abstract | ||
className | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
...ignLanguage-Core.package/ForeignLanguageObject.class/instance/defaultLabelForInspector.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
overrides | ||
defaultLabelForInspector | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/environment.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
overrides | ||
environment | ||
^ nil |
3 changes: 3 additions & 0 deletions
3
repository/ForeignLanguage-Core.package/ForeignLanguageObject.class/instance/explore.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
overrides | ||
explore | ||
^FLToolSet explore: self |
Oops, something went wrong.