Closed KittyGiraudel closed 10 years ago
Well, I am not sure. As far as know, both are CSS parsers. What we need here is a documentation parser.
Agreed @HugoGiraudel
Thanks for the input Aaron, I'll keep working on this to see if it can go anywhere.
Latest version: https://gist.github.com/HugoGiraudel/5614be5d1f02eb25c175. Getting closer.
Edit: I added a isValidType
function but it's not used yet.
Latest version from Hugo... https://gist.github.com/HugoGiraudel/9f44eb6b3d3391abb384
Progress:
To do:
Managed to get some things done:
real-parser
)examples
folder as it was with the regex version (~50 items across almost 30 files)I found an issue in the process: a function with a single line comment isn't documented, for instance a single @alias
line.
// @alias other-function
@function whatever($whatever) {
@return whatever;
}
Meanwhile, this works:
// @requires other-function
// @alias other-function
@function whatever($whatever) {
@return whatever;
}
Fabrice's work: https://github.com/FWeinb/CDocParser. Looks very promising.
New branch now using CDocParser and ScssCommentParser. Will deploy 1.0.0 shortly.
Regular expressions are not powerful enough.
We need to write a real parser.