1. Weird Error I Can't Diagnose

There's very little difference in the code below, but one works and the
other doesn't... What am I overlooking?!

This code works:
without warning
include TSInternet.ew
include TSMisc.ew

constant URLS =
	{
    "http://www.rapideuphoria.com"
    }

STRING Dest_dir

This doesn't:
without warning
include TSInternet.ew
include TSMisc.ew

constant URLS =
	{
		{"http://123.45.678.90/files/getform.esp?rrc_p-1.dot"},
		{"rrc_p-1.dot"}
	}

STRING Dest_dir
...


For that code, I get this error:

Syntax error - expected to see possibly 'end', not a type
    STRING dest_full_fname
         ^

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » topic index » view message » categorize

2. Re: Weird Error I Can't Diagnose

cklester wrote:
> 
> There's very little difference in the code below, but one works and the
> other doesn't... What am I overlooking?!
> 
> This code works:
> }}}
<eucode>
> without warning
> include TSInternet.ew
> include TSMisc.ew
> 
> constant URLS =
> 	{
>     "<a href="http://www.rapideuphoria.com">http://www.rapideuphoria.com</a>"
>     }
> 
> STRING Dest_dir
> </eucode>
{{{

> This doesn't:
> }}}
<eucode>
> without warning
> include TSInternet.ew
> include TSMisc.ew
> 
> constant URLS =
> 	{
> 		{"<a
> href="http://123.45.678.90/files/getform.esp?rrc_p-1.dot">http://123.45.678.90/files/getform.esp?rrc_p-1.dot</a>"},
> 		{"rrc_p-1.dot"}
> 	}
</eucode>
{{{

<snip> 

I would think the unbalanced qoutes would be a problem.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Weird Error I Can't Diagnose

Michael Raley wrote:

> I would think the unbalanced qoutes would be a problem.

EUforum is screwing up the code... I copied it below with eucode tags.

Works:

without warning
include TSInternet.ew
include TSMisc.ew

constant URLS =
	{
    "http://www.rapideuphoria.com"
    }

STRING Dest_dir

Works not:

without warning
include TSInternet.ew
include TSMisc.ew

constant URLS =
	{
		{"http://216.59.196.71/files/getform.esp?rrc_p-1.dot"},
		{"rrc_p-1.dot"}
	}

STRING Dest_dir

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

4. Re: Weird Error I Can't Diagnose

One

cklester wrote:
> 
> Michael Raley wrote:
> 
> > I would think the unbalanced qoutes would be a problem.
> 
> EUforum is screwing up the code... I copied it below with eucode tags.
> 
> Works:
> 
> without warning
> include TSInternet.ew
> include TSMisc.ew
> 
> constant URLS =
> 	{
>     "<a href="http://www.rapideuphoria.com">http://www.rapideuphoria.com</a>"
>     }
> 
> STRING Dest_dir
> 
> Works not:
> 
> without warning
> include TSInternet.ew
> include TSMisc.ew
> 
> constant URLS =
> 	{
> 		{"<a
> href="http://216.59.196.71/files/getform.esp?rrc_p-1.dot">http://216.59.196.71/files/getform.esp?rrc_p-1.dot</a>"},
> 		{"rrc_p-1.dot"}
> 	}
> 
> STRING Dest_dir
> 
> -=ck
> "Programming in a state of EUPHORIA."
> <a
> href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Weird Error I Can't Diagnose

CoJaBo wrote:
> 
> One
Oops...! Accidentaly clicked send(not hard to do with a touchpad!)
One time Euphoria started acting very weird, I had found it had
gotten currupt or infected with a virus, try downloading it again.
Other than that, I don't see anything wrong with the cod.

> 
> cklester wrote:
> > 
> > Michael Raley wrote:
> > 
> > > I would think the unbalanced qoutes would be a problem.
> > 
> > EUforum is screwing up the code... I copied it below with eucode tags.
> > 
> > Works:
> > 
> > without warning
> > include TSInternet.ew
> > include TSMisc.ew
> > 
> > constant URLS =
> > 	{
> >     "<a
> >     href="http://www.rapideuphoria.com">http://www.rapideuphoria.com</a>"
> >     }
> > 
> > STRING Dest_dir
> > 
> > Works not:
> > 
> > without warning
> > include TSInternet.ew
> > include TSMisc.ew
> > 
> > constant URLS =
> > 	{
> > 		{"<a
> > href="http://216.59.196.71/files/getform.esp?rrc_p-1.dot">http://216.59.196.71/files/getform.esp?rrc_p-1.dot</a>"},
> > 		{"rrc_p-1.dot"}
> > 	}
> > 
> > STRING Dest_dir
> > 
> > -=ck
> > "Programming in a state of EUPHORIA."
> > <a
> > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a>
> >
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: Weird Error I Can't Diagnose

On Thu, 21 Oct 2004 14:02:58 -0700, cklester <guest at RapidEuphoria.com>
wrote:

<snip>
>	}
>
>STRING Dest_dir
>Syntax error - expected to see possibly 'end', not a type
>    STRING dest_full_fname
>         ^
Thinking laterally, I can get a similar error from:
} if 1 then
STRING Dest_dir

Also, the interpreter handles shrouded sources, in which the keywords
are replaced by unusual characters, below #20 or above #7E.
Hence if there is a funny character somehow in the text file it may
cause the above message. Try blocking the text from the } to the S,
deleting and re-entering it.

Regards,
Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu