# HG changeset patch # User Jan Vrany # Date 1564002810 0 # Node ID 65da3a4195b65396ce4fd0dbfc622004e66992ec # Parent 77d5fddb6462020ab80dbaa7429bf7bf4646066e# Parent 5ddba1e787959f2f0b7b018ff04a7f8990cb3d48 Merge diff -r 5ddba1e78795 -r 65da3a4195b6 PPAndParser.st --- a/PPAndParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPAndParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPDelegateParser subclass:#PPAndParser @@ -40,6 +42,6 @@ ! version_SVN - ^ '§Id: PPAndParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPAndParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPCharSetPredicate.st --- a/PPCharSetPredicate.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPCharSetPredicate.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" "{ NameSpace: Smalltalk }" @@ -49,6 +51,6 @@ ! version_SVN - ^ '§Id: PPCharSetPredicate.st 4 2010-12-18 17:02:23Z kursjan §' + ^ '§Id: PPCharSetPredicate.st 4 2010-12-18 17:02:23Z kursjan §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPChoiceParser.st --- a/PPChoiceParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPChoiceParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPListParser subclass:#PPChoiceParser @@ -39,6 +41,6 @@ ! version_SVN - ^ '§Id: PPChoiceParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPChoiceParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPEndOfInputParser.st --- a/PPEndOfInputParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPEndOfInputParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPDelegateParser subclass:#PPEndOfInputParser @@ -40,6 +42,6 @@ ! version_SVN - ^ '§Id: PPEndOfInputParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPEndOfInputParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPExpressionParser.st --- a/PPExpressionParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPExpressionParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" "{ NameSpace: Smalltalk }" @@ -113,6 +115,6 @@ ! version_SVN - ^ '§Id: PPExpressionParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPExpressionParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPFailure.st --- a/PPFailure.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPFailure.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" Object subclass:#PPFailure @@ -91,6 +93,6 @@ ! version_SVN - ^ '§Id: PPFailure.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPFailure.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPLiteralSequenceParser.st --- a/PPLiteralSequenceParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPLiteralSequenceParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPLiteralParser subclass:#PPLiteralSequenceParser @@ -59,6 +61,6 @@ ! version_SVN - ^ '§Id: PPLiteralSequenceParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPLiteralSequenceParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPMemento.st --- a/PPMemento.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPMemento.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" Object subclass:#PPMemento @@ -67,6 +69,6 @@ ! version_SVN - ^ '§Id: PPMemento.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPMemento.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPMemoizedParser.st --- a/PPMemoizedParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPMemoizedParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPDelegateParser subclass:#PPMemoizedParser @@ -55,6 +57,6 @@ ! version_SVN - ^ '§Id: PPMemoizedParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPMemoizedParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPNotParser.st --- a/PPNotParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPNotParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPDelegateParser subclass:#PPNotParser @@ -32,6 +34,6 @@ ! version_SVN - ^ '§Id: PPNotParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPNotParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPStream.st --- a/PPStream.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPStream.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" "{ NameSpace: Smalltalk }" @@ -117,7 +119,7 @@ ifFalse: [ ^ super printOn: aStream ]. aStream nextPutAll: (collection copyFrom: 1 to: position); - nextPutAll: '·'; + nextPutAll: '·'; nextPutAll: (collection copyFrom: position + 1 to: readLimit) ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPTrimmingParser.st --- a/PPTrimmingParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPTrimmingParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPDelegateParser subclass:#PPTrimmingParser @@ -56,6 +58,6 @@ ! version_SVN - ^ '§Id: PPTrimmingParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPTrimmingParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPUnresolvedParser.st --- a/PPUnresolvedParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPUnresolvedParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPParser subclass:#PPUnresolvedParser @@ -31,5 +33,5 @@ ! version_SVN - ^ '§Id: PPUnresolvedParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPUnresolvedParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 PPWrappingParser.st --- a/PPWrappingParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/PPWrappingParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser' }" PPActionParser subclass:#PPWrappingParser @@ -25,6 +27,6 @@ ! version_SVN - ^ '§Id: PPWrappingParser.st 2 2010-12-17 18:44:23Z vranyj1 §' + ^ '§Id: PPWrappingParser.st 2 2010-12-17 18:44:23Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 analyzer/tests/PPAnalyzerTest.st --- a/analyzer/tests/PPAnalyzerTest.st Mon Jul 02 08:46:03 2018 +0200 +++ b/analyzer/tests/PPAnalyzerTest.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser/analyzer/tests' }" "{ NameSpace: Smalltalk }" @@ -19,7 +21,7 @@ !PPAnalyzerTest methodsFor:'accessing'! grammarA - "Güting, Erwig, Übersetzerbau, Springer (p.63)" + "Güting, Erwig, Ãœbersetzerbau, Springer (p.63)" | grammar | grammar := Dictionary new. diff -r 5ddba1e78795 -r 65da3a4195b6 devtools/PPDebugger.st --- a/devtools/PPDebugger.st Mon Jul 02 08:46:03 2018 +0200 +++ b/devtools/PPDebugger.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser/devtools' }" Object subclass:#PPDebugger @@ -77,5 +79,5 @@ ! version_SVN - ^ '§Id: PPDebugger.st 10 2012-05-04 18:54:13Z vranyj1 §' + ^ '§Id: PPDebugger.st 10 2012-05-04 18:54:13Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 devtools/PPDebuggingParser.st --- a/devtools/PPDebuggingParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/devtools/PPDebuggingParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser/devtools' }" PPParser subclass:#PPDebuggingParser @@ -70,5 +72,5 @@ ! version_SVN - ^ '§Id: PPDebuggingParser.st 10 2012-05-04 18:54:13Z vranyj1 §' + ^ '§Id: PPDebuggingParser.st 10 2012-05-04 18:54:13Z vranyj1 §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 devtools/extensions.st --- a/devtools/extensions.st Mon Jul 02 08:46:03 2018 +0200 +++ b/devtools/extensions.st Wed Jul 24 21:13:30 2019 +0000 @@ -340,4 +340,4 @@ extensionsVersion_CVS ^ '$Header: /cvs/stx/stx/goodies/petitparser/devtools/extensions.st,v 1.3 2013-01-11 09:58:24 vrany Exp $' -! ! \ No newline at end of file +! ! diff -r 5ddba1e78795 -r 65da3a4195b6 islands/JavaParser.st --- a/islands/JavaParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/islands/JavaParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -11,7 +11,70 @@ category:'PetitIslands-Examples' ! -JavaParser comment:'A JavaParser is a island parser, that can extract method names from a java file. Instance Variables arguments: block: classBody: classDef: classId: javaClass: javaClassIsland: methodBody: methodDef: methodModifiers: methodName: modifiers: semicolon: throws: type: arguments - xxxxx block - xxxxx classBody - xxxxx classDef - xxxxx classId - xxxxx javaClass - xxxxx javaClassIsland - xxxxx methodBody - xxxxx methodDef - xxxxx methodModifiers - xxxxx methodName - xxxxx modifiers - xxxxx semicolon - xxxxx throws - xxxxx type - xxxxx ' +JavaParser comment:'A JavaParser is a island parser, that can extract method names from a java file. + +Instance Variables + arguments: + block: + classBody: + classDef: + classId: + javaClass: + javaClassIsland: + methodBody: + methodDef: + methodModifiers: + methodName: + modifiers: + semicolon: + throws: + type: + +arguments + - xxxxx + +block + - xxxxx + +classBody + - xxxxx + +classDef + - xxxxx + +classId + - xxxxx + +javaClass + - xxxxx + +javaClassIsland + - xxxxx + +methodBody + - xxxxx + +methodDef + - xxxxx + +methodModifiers + - xxxxx + +methodName + - xxxxx + +modifiers + - xxxxx + +semicolon + - xxxxx + +throws + - xxxxx + +type + - xxxxx +' ! !JavaParser methodsFor:'as yet unclassified'! diff -r 5ddba1e78795 -r 65da3a4195b6 islands/PPIsland.st --- a/islands/PPIsland.st Mon Jul 02 08:46:03 2018 +0200 +++ b/islands/PPIsland.st Wed Jul 24 21:13:30 2019 +0000 @@ -10,7 +10,48 @@ category:'PetitIslands-Parsers' ! -PPIsland comment:'A PPIsland allows for imprecise parsing. One can create it on a parser p by calling: ''p island'' E.g.: p := x, a island, y accepts following inputs: x.....a.....b xab yet fails on: x....a....c xb xac x..b....a....b The input represented by dots is called water and water can appear before and after the island. Use it, if you don''t want to define all the grammar rules and you want to skip something. I am still an experiment, but if you know how to improve me, please contact Jan Kurs at: kurs@iam.unibe.ch Instance Variables afterWaterParser: awp: beforeWaterParser: bwp: context: island: afterWaterParser - xxxxx awp - xxxxx beforeWaterParser - xxxxx bwp - xxxxx context - xxxxx island - xxxxx ' +PPIsland comment:'A PPIsland allows for imprecise parsing. One can create it on a parser p by calling: ''p island'' E.g.: + +p := x, a island, y accepts following inputs: +x.....a.....b +xab + +yet fails on: +x....a....c +xb +xac +x..b....a....b + +The input represented by dots is called water and water can appear before and after the island. Use it, if you don''t want to define all the grammar rules and you want to skip something. + +I am still an experiment, but if you know how to improve me, please contact Jan Kurs at: kurs@iam.unibe.ch + +Instance Variables + afterWaterParser: + awp: + beforeWaterParser: + bwp: + context: + island: + +afterWaterParser + - xxxxx + +awp + - xxxxx + +beforeWaterParser + - xxxxx + +bwp + - xxxxx + +context + - xxxxx + +island + - xxxxx +' ! !PPIsland methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 islands/PPMemoizingIsland.st --- a/islands/PPMemoizingIsland.st Mon Jul 02 08:46:03 2018 +0200 +++ b/islands/PPMemoizingIsland.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,20 @@ category:'PetitIslands-Parsers' ! -PPMemoizingIsland comment:'A PPMemoizingIsland is memoized version of PPIsland. Use this one, unless you don''t mind really bad performance. If the memoized version is not working flawlessly, its a bug!! Please see help of the PPIsland for how to use... Instance Variables memoizationDictionaries: rootParser: memoizationDictionaries - memoization cache rootParser - used for memoizing, once the root changes, flushes the caches ' +PPMemoizingIsland comment:'A PPMemoizingIsland is memoized version of PPIsland. Use this one, unless you don''t mind really bad performance. If the memoized version is not working flawlessly, its a bug!! + +Please see help of the PPIsland for how to use... + +Instance Variables + memoizationDictionaries: + rootParser: + +memoizationDictionaries + - memoization cache + +rootParser + - used for memoizing, once the root changes, flushes the caches +' ! diff -r 5ddba1e78795 -r 65da3a4195b6 islands/RobustXmlFeedParser.st --- a/islands/RobustXmlFeedParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/islands/RobustXmlFeedParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,8 @@ category:'PetitIslands-Examples' ! -RobustXmlFeedParser comment:'A RobustXmlFeedParser is XmlFeedParser, that can handle error within an xml Item element ' +RobustXmlFeedParser comment:'A RobustXmlFeedParser is XmlFeedParser, that can handle error within an xml Item element +' ! diff -r 5ddba1e78795 -r 65da3a4195b6 islands/XmlFeedParser.st --- a/islands/XmlFeedParser.st Mon Jul 02 08:46:03 2018 +0200 +++ b/islands/XmlFeedParser.st Wed Jul 24 21:13:30 2019 +0000 @@ -10,7 +10,66 @@ category:'PetitIslands-Examples' ! -XmlFeedParser comment:'A XmlFeedParser is Parser of a fake shop feed. Shop feed is a XML file with information about shop products. Shop feed can be malformed (for any reason) the parser will recover from malformed item and will continue on the next valid item. Instance Variables closeItem: closeName: closeShoplist: item: itemContent: name: nameContent: openItem: openName: openShoplist: shoplist: shoplistContent: simpleElement: stringValue: closeItem - xxxxx closeName - xxxxx closeShoplist - xxxxx item - xxxxx itemContent - xxxxx name - xxxxx nameContent - xxxxx openItem - xxxxx openName - xxxxx openShoplist - xxxxx shoplist - xxxxx shoplistContent - xxxxx simpleElement - xxxxx stringValue - xxxxx ' +XmlFeedParser comment:'A XmlFeedParser is Parser of a fake shop feed. Shop feed is a XML file with information about shop products. Shop feed can be malformed (for any reason) the parser will recover from malformed item and will continue on the next valid item. + +Instance Variables + closeItem: + closeName: + closeShoplist: + item: + itemContent: + name: + nameContent: + openItem: + openName: + openShoplist: + shoplist: + shoplistContent: + simpleElement: + stringValue: + +closeItem + - xxxxx + +closeName + - xxxxx + +closeShoplist + - xxxxx + +item + - xxxxx + +itemContent + - xxxxx + +name + - xxxxx + +nameContent + - xxxxx + +openItem + - xxxxx + +openName + - xxxxx + +openShoplist + - xxxxx + +shoplist + - xxxxx + +shoplistContent + - xxxxx + +simpleElement + - xxxxx + +stringValue + - xxxxx +' ! !XmlFeedParser methodsFor:'grammar'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJBlockNode.st --- a/parsers/java/PJBlockNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJBlockNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,9 @@ category:'PetitJava-AST' ! -PJBlockNode comment:'A node representing a block of java code. A block begins with: { ends with: } and has statement in between.' +PJBlockNode comment:'A node representing a block of java code. + +A block begins with: { ends with: } and has statement in between.' ! !PJBlockNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJConstructorDeclarationNode.st --- a/parsers/java/PJConstructorDeclarationNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJConstructorDeclarationNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,9 @@ category:'PetitJava-AST' ! -PJConstructorDeclarationNode comment:'constructor-specific behavioural entity. more in superclass comment' +PJConstructorDeclarationNode comment:'constructor-specific behavioural entity. + +more in superclass comment' ! !PJConstructorDeclarationNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJExpressionStatementNode.st --- a/parsers/java/PJExpressionStatementNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJExpressionStatementNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,15 @@ category:'PetitJava-AST' ! -PJExpressionStatementNode comment:'A statement which has nothing but expression in it. Examples: 5; a = 5; a.foo(); a = for(5);' +PJExpressionStatementNode comment:'A statement which has nothing but expression in it. + + +Examples: + +5; +a = 5; +a.foo(); +a = for(5);' ! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJInfixOperationNode.st --- a/parsers/java/PJInfixOperationNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJInfixOperationNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,9 @@ category:'PetitJava-AST' ! -PJInfixOperationNode comment:'This node is a STUB!!!!!!!! It''s being used for each node that consists of 2 expressions and some operation in between e.g.: +, -, =, +=, ==...' +PJInfixOperationNode comment:'This node is a STUB!!!!!!!! + +It''s being used for each node that consists of 2 expressions and some operation in between e.g.: +, -, =, +=, ==...' ! !PJInfixOperationNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJLocalVariableDeclarationStatementNode.st --- a/parsers/java/PJLocalVariableDeclarationStatementNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJLocalVariableDeclarationStatementNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,14 @@ category:'PetitJava-AST' ! -PJLocalVariableDeclarationStatementNode comment:'Node representing a local variable declaration statement. Eg: int a; int a = 5; int a, b; int a = 5, b;' +PJLocalVariableDeclarationStatementNode comment:'Node representing a local variable declaration statement. + +Eg: + +int a; +int a = 5; +int a, b; +int a = 5, b;' ! !PJLocalVariableDeclarationStatementNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJReturnStatementNode.st --- a/parsers/java/PJReturnStatementNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJReturnStatementNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,13 @@ category:'PetitJava-AST' ! -PJReturnStatementNode comment:'Return statement node. Ex: return 5; return 5+a.foo(); return a;' +PJReturnStatementNode comment:'Return statement node. + +Ex: + +return 5; +return 5+a.foo(); +return a;' ! !PJReturnStatementNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJStatementNode.st --- a/parsers/java/PJStatementNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJStatementNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,6 +9,8 @@ category:'PetitJava-AST' ! -PJStatementNode comment:'A general superclass for every statement node. Example: if, while, return, variable declaration..' +PJStatementNode comment:'A general superclass for every statement node. + +Example: if, while, return, variable declaration..' ! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PJVariableDeclaratorNode.st --- a/parsers/java/PJVariableDeclaratorNode.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PJVariableDeclaratorNode.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,15 @@ category:'PetitJava-AST' ! -PJVariableDeclaratorNode comment:'A part of local variable declaration statement. Example. statement: int a; declarator: a statement: float a, b = 4; declarator1: a declarator2: b = 4' +PJVariableDeclaratorNode comment:'A part of local variable declaration statement. + +Example. +statement: int a; +declarator: a + +statement: float a, b = 4; +declarator1: a +declarator2: b = 4' ! !PJVariableDeclaratorNode methodsFor:'accessing'! diff -r 5ddba1e78795 -r 65da3a4195b6 parsers/java/PPJavaLexicon.st --- a/parsers/java/PPJavaLexicon.st Mon Jul 02 08:46:03 2018 +0200 +++ b/parsers/java/PPJavaLexicon.st Wed Jul 24 21:13:30 2019 +0000 @@ -25,7 +25,11 @@ category:'PetitJava-Core' ! -PPJavaLexicon comment:'A parser with a definitions for some basic Java gramar parts Grammar rules follow as closely as possible the specification found in "The Java Language Specification Third Edition" URL = ' +PPJavaLexicon comment:'A parser with a definitions for some basic Java gramar parts + +Grammar rules follow as closely as possible the specification found in "The Java Language Specification Third Edition" + +URL = ' ! diff -r 5ddba1e78795 -r 65da3a4195b6 tests/PPMappingTest.st --- a/tests/PPMappingTest.st Mon Jul 02 08:46:03 2018 +0200 +++ b/tests/PPMappingTest.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser/tests' }" "{ NameSpace: Smalltalk }" @@ -96,6 +98,6 @@ ! version_SVN - ^ '§Id: PPMappingTest.st 4 2010-12-18 17:02:23Z kursjan §' + ^ '§Id: PPMappingTest.st 4 2010-12-18 17:02:23Z kursjan §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 tests/PPParserResource.st --- a/tests/PPParserResource.st Mon Jul 02 08:46:03 2018 +0200 +++ b/tests/PPParserResource.st Wed Jul 24 21:13:30 2019 +0000 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/petitparser/tests' }" "{ NameSpace: Smalltalk }" @@ -41,6 +43,6 @@ ! version_SVN - ^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' + ^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' ! ! diff -r 5ddba1e78795 -r 65da3a4195b6 tests/PPScriptingTest.st --- a/tests/PPScriptingTest.st Mon Jul 02 08:46:03 2018 +0200 +++ b/tests/PPScriptingTest.st Wed Jul 24 21:13:30 2019 +0000 @@ -9,7 +9,8 @@ category:'PetitTests-Tests' ! -PPScriptingTest comment:'These are some simple demo-scripts of parser combinators for the compiler construction course. http://www.iam.unibe.ch/~scg/Teaching/CC/index.html' +PPScriptingTest comment:'These are some simple demo-scripts of parser combinators for the compiler construction course. +http://www.iam.unibe.ch/~scg/Teaching/CC/index.html' !