File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
src/FAST-Java-SmaCC-Importer Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ JavaSmaCCProgramNodeImporterVisitor >> currentFASTEntity [
139139 ^ currentFASTEntity
140140]
141141
142+ { #category : ' initialization' }
143+ JavaSmaCCProgramNodeImporterVisitor >> currentFASTEntity: anObject [
144+
145+ currentFASTEntity := anObject
146+ ]
147+
142148{ #category : ' initialization' }
143149JavaSmaCCProgramNodeImporterVisitor >> initialize [
144150 super initialize.
@@ -186,6 +192,30 @@ JavaSmaCCProgramNodeImporterVisitor >> parentFASTVisitor: anObject [
186192 parentFASTVisitor := anObject
187193]
188194
195+ { #category : ' initialization' }
196+ JavaSmaCCProgramNodeImporterVisitor >> parseCodeExpressionString: aCodeString [
197+
198+ | ast |
199+ parser := JavaParser
200+ createParserOnStream: (ReadStream on: aCodeString)
201+ startingAt:
202+ JavaParser
203+ startingStateForexpression.
204+
205+ [
206+ ast := parser parse.
207+
208+ (ast isKindOf: SmaCCParseNode ) ifTrue: [
209+ ast completeSource: aCodeString ] ]
210+ on: Error
211+ do: [ :err |
212+ (' SmaCC Err parsing: ' , String crlf , aCodeString) record.
213+ err signal ].
214+
215+ ^ self accept: ast.
216+
217+ ]
218+
189219{ #category : ' initialization' }
190220JavaSmaCCProgramNodeImporterVisitor >> parseCodeMethodString: aCodeString [
191221
You can’t perform that action at this time.
0 commit comments