On Sun, Feb 25, 2007 at 04:39:17PM +0100, Klaas-Jan Stol wrote:
> most languages that can run in interactive mode have some kind of 
> welcome message and prompt that is printed before the user can give any 
> input.

Yes, this is helpful.  But also one of the things we need is a way
so that we can have "additional input" -- i.e., when entering
constructs that span multiple lines, for the language to be able
to signal HLLCompiler to obtain additional lines of input.  

> (a possible improvement would be to have an array 
> of prompts; many languages have 2 prompts, when a "\" or whatever is 
> given. In Python, if one gives "\" at the end of the line, the next 
> prompt is "...". In lua it is ">>" instead of the normal prompt ">".)

I think we need to go ahead and have it possible to use an
array of prompts.

> As an example, I used this in Pynie.pir, which prints nicely:
> 
> C:\parrot\languages\pynie>..\..\parrot pynie.pbc
> Python 2.5 for Parrot
> Type "help", "copyright", "credits" or "license" for more information.
> >>>

I'm generally in favor of not making false promises.  So,
don't offer options that aren't available.  :-)

Similarly, Pynie was modeled on Python 2.3, not 2.5... but if
someone has a copy of Python's 2.5 specification (or can point me
to it on the web), we can do 2.5.

Pm

Reply via email to