Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

particle (3326)

  (email not shown publicly)

Journal of particle (3326)

Saturday January 12, 2008
01: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:

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.
More | Login | Reply
Loading... please wait.