Changes: - Code is now using rules files to parse files specified by user - Rules fixed Usage: pretty [-language] filename(-s) Project now need people who will write rules files for another languages. This is rule file for Ruby: line.size > 80 !!! Too long line line =~ /^;/ !!! Don't use ; line =~ /[$]\w+/ !!! Using global variables is not good idea except that you are using special variables like $_ If you write rule file for some language please post it to this forum. I will add ot to project immediately.
on 19.08.2008 13:07
on 19.08.2008 19:27
On Tue, Aug 19, 2008 at 7:03 AM, Mateusz Tybura <wujciol@gmail.com> wrote: > Changes: > - Code is now using rules files to parse files specified by user > - Rules fixed > > Usage: pretty [-language] filename(-s) Is there somewhere I can download this? -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com
on 19.08.2008 19:42
Avdi Grimm wrote: > On Tue, Aug 19, 2008 at 7:03 AM, Mateusz Tybura <wujciol@gmail.com> > wrote: >> Changes: >> - Code is now using rules files to parse files specified by user >> - Rules fixed >> >> Usage: pretty [-language] filename(-s) > > Is there somewhere I can download this? > > -- > Avdi > > Home: http://avdi.org > Developer Blog: http://avdi.org/devblog/ > Twitter: http://twitter.com/avdi > Journal: http://avdi.livejournal.com You can download it from http://rubyforge.org/projects/pretty/ or just install: gem install pretty
on 19.08.2008 20:02
On Tue, Aug 19, 2008 at 1:38 PM, Mateusz Tybura <wujciol@gmail.com> wrote: > You can download it from http://rubyforge.org/projects/pretty/ > or just install: gem install pretty Thanks :-) Might want to include that info in future announcements... -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com
on 20.08.2008 04:23
On Tue, Aug 19, 2008 at 1:03 PM, Mateusz Tybura <wujciol@gmail.com> wrote: > line =~ /^;/ !!! Don't use ; really = %{code ; comment } > line =~ /[$]\w+/ !!! Using global variables is not good idea except that > you are using special variables like $_ are_you_sure = "Make some $money" Robert -- http://ruby-smalltalk.blogspot.com/ There's no one thing that's true. It's all true.