Re: Interpreter Mod We Can All Get Behind

new topic     » goto parent     » topic index » view thread      » older message » newer message

c.k.lester wrote:
> 
> Bernie Ryan wrote:
> > And How about a line continuation symbol
> > 
> > Example:
> > 
> >   "This is a long string that I want to continue on the next line __
> >    so I can just use the two underscores to continue it on this line"
> 
> Why would you want that? Euphoria already ignores line breaks in code
> so you can do something like
> 
>    "This is a long string that I want to continue on the next line "
>    & "so I can just use the two underscores to continue it on this line"
>
So I can do this which I think is less confusing:

record("MyStructure", "__
 item1 long    1       __ 
 item2 pointer 1       __
 rect STRUCT RECT      __
 item3 byte   10
 item4 uint    1       __
 ") 

> 
> For string sequences, just use an editor that has word wrapping. :)
> 
> Besides, it would be a pain to implement. What if my string sequence has
> a double underscore in it?

Underscores are only allowed inside of identifiers.
If they are inside a sting they would be ignored.


Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu