-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File parser #744
File parser #744
Conversation
…fused kids a bit more robust .
…s added to the root properties , delete it
@@ -0,0 +1,30 @@ | |||
Class { | |||
#name : 'FileParser', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename your class FromFileTest?
tx
Microdown >> parseFile: aFile [ | ||
|
||
|root| | ||
root := MicrodownParser parse:(aFile contents) . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parse: (aFile contents).
No extra space
^ self propertyAt: #file . | ||
] | ||
|
||
{ #category : 'visiting' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in visiting
@@ -32,6 +32,16 @@ MicRootBlock >> canConsumeLine: line [ | |||
^ true | |||
] | |||
|
|||
{ #category : 'visiting' } | |||
MicRootBlock >> fromFile [ " retieve " | |||
^ self propertyAt: #file . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the last period is not needed.
I could not understand why the ParentChild code is in this PR. |
I will merge this PR but it was messy. |
file parser , read a file parse then its content with microdown parser and add the file to the properties of the root element .