Alberto,
Have a look at the how TextLint (a PetitParser thingy that creates
some output) is integrated into TextMate, Emacs, Vim, ...
https://github.com/DamienCassou/textlint
The Pharo VM is started through some (shell) scripts that are called
by the respective editors (but these scripts also work independently):
Emacs: https://github.com/DamienCassou/textlint/blob/master/textlint.bash
TextMate:
https://github.com/DamienCassou/textlint/blob/master/TextLint.tmbundle/Commands/Run%20TextLint.tmCommand
Lukas
On 6 November 2011 01:04, Stefan Marr <[email protected]> wrote:
> Hi Alberto:
>
>
> On 05 Nov 2011, at 23:29, Alberto Bacchelli wrote:
>
>> ./myParser -i fileToParse.txt -o outputFile.txt
>>
>> Is there any possibility to do that? Can a headless Pharo be a
>> solution? If so, how can I start and use a headless Pharo? Is there
>> any useful documentation/email about it?
>
>
>
>
> I attached the stuff I currently use.
> There might be better ways to do it, but the attached code is Squeak 3.9 and
> Pharo 1.3 compatible...
>
> [There might be bugs with regard to saving images and restarting etc.
> Have not checked whether that is the latest version of the code.
> But should be good enough to get an idea, and might be sufficient for your
> use case.]
>
> The HelloWorld class should get you started.
>
> On OSX you would need a fairly new VM, I think. The old ones did not play
> nice with the command-line.
>
> The hello world should look like this:
>
> $ your-vm-binary -headless your.image HelloWorld foo bar baz
>
>
>
>
> Best regards
> Stefan
>
> --
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> http://soft.vub.ac.be/~smarr
> Phone: +32 2 629 2974
> Fax: +32 2 629 3525
>
>
>
--
Lukas Renggli
www.lukas-renggli.ch