Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/BaselineOfFASTPython/BaselineOfFASTPython.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Class {
BaselineOfFASTPython >> baseline: spec [

<baseline>
spec for: #common do: [ "Dependencies"
spec for: #common do: [
spec preLoadDoIt: #'preload:package:'.

"Dependencies"
self
fast: spec;
treeSitter: spec.
Expand Down Expand Up @@ -40,13 +43,23 @@ BaselineOfFASTPython >> fast: spec [
repository: 'github://moosetechnology/FAST:v3/src' ]
]

{ #category : 'actions' }
BaselineOfFASTPython >> preload: loader package: packageSpec [
"For now we use the bleeding edge of tree-sitter-python"

(self class environment at: #TreeSitterLibraryBranchMap ifAbsentPut: [ Dictionary new ]) at: 'Python' put: 'master'
]

{ #category : 'accessing' }
BaselineOfFASTPython >> projectClass [
^ MetacelloCypressBaselineProject
]

{ #category : 'dependencies' }
BaselineOfFASTPython >> treeSitter: spec [
spec
baseline: 'TreeSitter' with: [ spec repository: 'github://Evref-BL/Pharo-Tree-Sitter:v.2.0.0/src' ]

spec baseline: 'TreeSitter' with: [
spec
repository: 'github://Evref-BL/Pharo-Tree-Sitter:v.2.1.2/src';
loads: #( 'moose' 'python' ) ]
]
7 changes: 0 additions & 7 deletions src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ Class {
#tag : 'Importer'
}

{ #category : 'class initialization' }
FASTPythonImporterTest class >> initialize [
"We ensure the installation of the library before running the tests because it could cause a time limit to fails for the test installing the libraries."

TSLibrariesPython new ensurePythonLibraryExists
]

{ #category : 'test generation' }
FASTPythonImporterTest class >> regenerateAllTests [

Expand Down
7 changes: 0 additions & 7 deletions src/FAST-Python-Tools/FASTPythonTreeSitterVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ Class {
#tag : 'Importing'
}

{ #category : 'class initialization' }
FASTPythonTreeSitterVisitor class >> initialize [
"For now we use the bleeding edge"

TSLibrariesPython gitBranchToUse: 'master'
]

{ #category : 'private' }
FASTPythonTreeSitterVisitor >> handleBinaryOperator: aTSNode ofKind: aClass [

Expand Down
Loading