Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

particle (3326)

particle
  (email not shown publicly)

Journal of particle (3326)

Saturday January 12, 2008
02:54 PM

[pct]: implement one-liners for compilers

[ #35376 ]

since evaluating one-liners is a popular option for compilers, i've implemented it in the Parrot Compiler Toolkit.

view the patch here: http://perlsix.org/svn/parrot/revision/?rev=24795

the first difference adds '-e' as a valid command line option.

the next set of differences refactors argument processing out of the 'command_line' method into its own method, 'process_args'. this should allow greater flexibility for compilers based on PCT::HLLCompiler.

the last two differences process the '-e' option: if the option was set, the 'eval' method is called to process the line of code that was passed.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.