Re: [myhdl-list] docstrings forwarded to converted output
Brought to you by:
jandecaluwe
From: Jian L. <jia...@go...> - 2010-06-29 21:04:07
|
Nice! This feature actually makes it easier to sell MyHDL to some old-school guys. On Tue, Jun 29, 2010 at 4:47 PM, Jan Decaluwe <ja...@ja...> wrote: > I just pushed a changeset which is supposed to add support > for forwarding docstrings to converted output. > This provides a way to document the converted output. > > Ordinary Python comments are ignored, because they are > not kept in the ast tree generated by the ast module. > But any docstring is forwarded. Those on "official places" > are put on a hopefully logical position, but "unofficial" > ones are forwarded also, right on the line where they > occur. By using a docstring instead of an ordinary comment, > you can control which comments should be kept by the > conversion, and which not. > > This is an experimental feature, not extensively tested. > Let us know what you find. > > Jan > > -- > Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com > Python as a HDL: http://www.myhdl.org > VHDL development, the modern way: http://www.sigasi.com > Analog design automation: http://www.mephisto-da.com > World-class digital design: http://www.easics.com > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |