-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create a pretty printer in param_storage.h . #1
Comments
I am new to this , so can you help a little and tell me what this function should do ? Thx |
Oh, wow! A contributor! Well, a pretty-printer for some hierarchical datastructure / markup languages is a print function that sets up nice indentation and spacing so that the markup will be easy to read. For example:
is valid SNOT (and therefore valid JSON).
is significantly easier to read. |
Basically the function needs either a stack or recursion and descends into the datastructure, keeping track of how many levels in it is, and applies some rules about indentation and formatting. |
In what language should I implement this function ? |
It should go in Thanks! |
Except for potentially including a new standard header (which I hope can be avoided), the new function should be totally self-contained. I mean that you should not need to alter any other part of the code, just add the function to the DictList class. |
Is there a document explaining the parts of code already written? I have a problem understanding thr DictList class functionality. |
There isn't any proper doxygen API or anything, but there are examples at https://github.com/bryan-lunt/SNOT_lang/tree/master/lexyacc/examples |
Create a pretty-printer utility function.
It could be a static function or a member function, either way. I suppose I prefer a static function for some reason.
Do not alter the existing operator<<
The text was updated successfully, but these errors were encountered: