Multiple changes:
- Recategorize package - Add application skeleton
This commit is contained in:
27
src/Carp/CarpApplication.class.st
Normal file
27
src/Carp/CarpApplication.class.st
Normal file
@@ -0,0 +1,27 @@
|
||||
Class {
|
||||
#name : #CarpApplication,
|
||||
#superclass : #LanguageLinkApplication,
|
||||
#instVars : [
|
||||
'uniqueInstance'
|
||||
],
|
||||
#category : #'Carp-LanguageLink'
|
||||
}
|
||||
|
||||
{ #category : #'start-stop' }
|
||||
CarpApplication class >> start [
|
||||
|
||||
^ self startWith: LanguageLinkSettings jsDefaultSettings.
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
CarpApplication >> baseApplication [
|
||||
^ CarpApplication
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
CarpApplication >> initializeHandlers [
|
||||
loggingHandler := LanguageLinkLoggingHandler application: self.
|
||||
communicationHandler := LanguageLinkCommunicationHandler application: self.
|
||||
processHandler := LanguageLinkServerHandler application: self.
|
||||
"executionHandler := CarpExecutionHandler application: self"
|
||||
]
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'expressions'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -1,7 +1,7 @@
|
||||
Class {
|
||||
#name : #CarpExpressionNode,
|
||||
#superclass : #SmaCCParseNode,
|
||||
#category : #'Carp-Carp'
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -3,5 +3,5 @@ Class {
|
||||
#superclass : #Object,
|
||||
#traits : 'TCarpExpressionNodeVisitor',
|
||||
#classTraits : 'TCarpExpressionNodeVisitor classTrait',
|
||||
#category : #Carp
|
||||
#category : #'Carp-Parser'
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ Class {
|
||||
'fileName',
|
||||
'contents'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-Parser'
|
||||
}
|
||||
|
||||
{ #category : #'instance creation' }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'expressions'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'pairs'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -5,7 +5,7 @@ Class {
|
||||
'key',
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -1,7 +1,7 @@
|
||||
Class {
|
||||
#name : #CarpParser,
|
||||
#superclass : #SmaCCGLRParser,
|
||||
#category : #Carp
|
||||
#category : #'Carp-Parser'
|
||||
}
|
||||
|
||||
{ #category : #'generated-accessing' }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -1,7 +1,7 @@
|
||||
Class {
|
||||
#name : #CarpScanner,
|
||||
#superclass : #SmaCCScanner,
|
||||
#category : #Carp
|
||||
#category : #'Carp-Parser'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'expressions'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
@@ -4,7 +4,7 @@ Class {
|
||||
#instVars : [
|
||||
'value'
|
||||
],
|
||||
#category : #Carp
|
||||
#category : #'Carp-AST'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
20
src/Carp/LanguageLinkSettings.extension.st
Normal file
20
src/Carp/LanguageLinkSettings.extension.st
Normal file
@@ -0,0 +1,20 @@
|
||||
Extension { #name : #LanguageLinkSettings }
|
||||
|
||||
{ #category : #'*Carp' }
|
||||
LanguageLinkSettings class >> carpDefaultSettings [
|
||||
|
||||
^ self new
|
||||
clientSocketAddress: (LanguageLinkSocketAddress
|
||||
ipOrName: 'localhost' port: (9000 + 99 atRandom));
|
||||
serverSocketAddress: (LanguageLinkSocketAddress
|
||||
ipOrName: 'localhost' port: (9900 + 99 atRandom));
|
||||
messageBrokerStrategy: LanguageLinkHttpMessageBroker;
|
||||
serverProcessClass: JSLinkPharoNodejsProcess;
|
||||
platform: JSLinkPharoPlatform new;
|
||||
commandFactoryClass: JSLinkCommandFactory;
|
||||
commandClass: LanguageLinkCommand;
|
||||
serializerClass: LanguageLinkSerializer;
|
||||
deserializerClass: JSLinkDeserializer;
|
||||
parserClass: CarpParser;
|
||||
yourself
|
||||
]
|
@@ -2,7 +2,7 @@ Trait {
|
||||
#name : #TCarpExpressionNodeVisitor,
|
||||
#traits : 'TSmaCCParseNodeVisitor',
|
||||
#classTraits : 'TSmaCCParseNodeVisitor classTrait',
|
||||
#category : #Carp
|
||||
#category : #'Carp-Parser'
|
||||
}
|
||||
|
||||
{ #category : #generated }
|
||||
|
Reference in New Issue
Block a user