11Class {
2- #name : ' MicRuleChecker ' ,
2+ #name : ' MicRuleAllTextChecker ' ,
33 #superclass : ' MicrodownVisitor' ,
44 #instVars : [
55 ' rules' ,
66 ' errors' ,
77 ' patternPairs'
88 ],
9- #category : ' Microdown-Rules' ,
10- #package : ' Microdown-Rules'
9+ #category : ' Microdown-Rules-Others' ,
10+ #package : ' Microdown-Rules' ,
11+ #tag : ' Others'
1112}
1213
1314{ #category : ' adding' }
14- MicRuleChecker >> addRule: aRule [
15+ MicRuleAllTextChecker >> addRule: aRule [
1516 rules add: aRule.
1617]
1718
1819{ #category : ' as yet unclassified' }
19- MicRuleChecker >> checkText: aMicText [
20+ MicRuleAllTextChecker >> checkText: aMicText [
2021
2122 | foundProblems |
2223 " #( *xxx* -> r . *x x* -> r)"
@@ -32,25 +33,25 @@ MicRuleChecker >> checkText: aMicText [
3233]
3334
3435{ #category : ' accessing' }
35- MicRuleChecker >> errors [
36+ MicRuleAllTextChecker >> errors [
3637 ^ errors
3738]
3839
3940{ #category : ' initialization' }
40- MicRuleChecker >> initialize [
41+ MicRuleAllTextChecker >> initialize [
4142
4243 super initialize.
4344 rules := OrderedCollection new .
4445 errors := OrderedCollection new .
4546]
4647
4748{ #category : ' accessing' }
48- MicRuleChecker >> patterns [
49+ MicRuleAllTextChecker >> patterns [
4950 ^ patternPairs
5051]
5152
5253{ #category : ' visiting - inline elements' }
53- MicRuleChecker >> prepareForChecking [
54+ MicRuleAllTextChecker >> prepareForChecking [
5455 " in the future we should have multiple rules and managed this better"
5556
5657 | r |
@@ -59,7 +60,7 @@ MicRuleChecker >> prepareForChecking [
5960]
6061
6162{ #category : ' visiting - inline elements' }
62- MicRuleChecker >> visitText: aMicText [
63+ MicRuleAllTextChecker >> visitText: aMicText [
6364
6465 self checkText: aMicText
6566]
0 commit comments