kevinpt / hdlparse

Simple parser for extracting VHDL documentation
http://kevinpt.github.io/hdlparse/
MIT License
70 stars 55 forks source link

Add entity parsing #14

Open andresmanelli opened 5 years ago

andresmanelli commented 5 years ago

This PR adds entity parsing, at least basically.

Should help/fix #13 and #6 ?

andresmanelli commented 5 years ago

Well, I added a small commit for ports and generics default values

m-tosch commented 4 years ago

Regarding issue #13, this only fixed the entity. If you can, change the "architecture" and "package" parts too :)

andresmanelli commented 3 years ago

Hey @m-tosch, almost a year after your comment, I created #19 . I'm not 100 % sure if those work perfectly fine. Could you try it out ? That way this PR can be merged maybe alonside #19 to fix #13

Thanks !

m-tosch commented 3 years ago

The matching should be done as for "entity" using just \w+ i think that's best

(r'end\s+\w+\s*;', 'end_entity', '#pop'),