What does 'input in flex scanner failed' really mean?

3273 views
Skip to first unread message

Bob Rogers

unread,
Oct 7, 2006, 11:00:25 AM10/7/06
to parrot-...@perl.org
I am stumped by the following problem:

rogers@rgrjr> cat scanner.pir
## WTF???
.sub main :main
load_bytecode "Data/Dumper"
.end
rogers@rgrjr> ./parrot scanner.pir
input in flex scanner failed
rogers@rgrjr>

This is with vanilla r14850. I can't seem to get it to accept
load_bytecode under any circumstances. Does anyone have any clues?
MTIA,

-- Bob Rogers
http://rgrjr.dyndns.org/

Leopold Toetsch

unread,
Oct 7, 2006, 11:20:16 AM10/7/06
to perl6-i...@perl.org
Am Samstag, 7. Oktober 2006 17:00 schrieb Bob Rogers:
>         ## WTF???
>         .sub main :main
>                 load_bytecode "Data/Dumper"
>         .end

There's a test missing, if the file is a diretory obviously.

leo

Bob Rogers

unread,
Oct 7, 2006, 11:33:02 AM10/7/06
to Leopold Toetsch, perl6-i...@perl.org
From: Leopold Toetsch <l...@toetsch.at>
Date: Sat, 7 Oct 2006 17:20:16 +0200

leo

Aha! It was not obvious to me; I was deeply confused because I thought
the IMCC scanner was complaining about scanner.pir! Thanks again,

-- Bob

Chromatic

unread,
Oct 7, 2006, 5:38:34 PM10/7/06
to perl6-i...@perl.org, Leopold Toetsch

Something like this?

-- c

MANIFEST | 1 +
compilers/imcc/parser_util.c | 8 ++++++++
t/op/load_bytecode.t | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+)

load_bytecode_tests.patch

Bob Rogers

unread,
Oct 7, 2006, 5:55:24 PM10/7/06
to chromatic, perl6-i...@perl.org, Leopold Toetsch
From: chromatic <chro...@wgz.org>
Date: Sat, 7 Oct 2006 14:38:34 -0700

On Saturday 07 October 2006 08:20, Leopold Toetsch wrote:

> There's a test missing, if the file is a diretory obviously.

Something like this?

-- c

Excellent; thanks.

-- Bob

Reply all
Reply to author
Forward
0 new messages