[Snowball-discuss] Snowball doesn't recognize any .sbl programs

Craig Rairdin craigr at laridian.com
Mon Nov 28 16:13:01 GMT 2011


Running on Mac OS X. Downloaded all the code. Tried executing the make file
to build the library. Everything is OK until Snowball tries to process the
first Snowball program.

Executed this command:

make ­f GNUMakeFile

Result:

cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/space.o compiler/space.c
cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/tokeniser.o compiler/tokeniser.c
cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/analyser.o compiler/analyser.c
cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/generator.o compiler/generator.c
cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/driver.o compiler/driver.c
cc -Iinclude -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations  -c -o
compiler/generator_java.o compiler/generator_java.c
cc -o snowball compiler/space.o compiler/tokeniser.o compiler/analyser.o
compiler/generator.o compiler/driver.o compiler/generator_java.o
cp algorithms/danish/stem_ISO_8859_1.sbl algorithms/danish/stem_Unicode.sbl
./snowball algorithms/danish/stem_Unicode.sbl -o src_c/stem_UTF_8_danish
-eprefix danish_UTF_8_ -r ../runtime -u
algorithms/danish/stem_Unicode.sbl:1: unexpected name routines
algorithms/danish/stem_Unicode.sbl:1: unexpected ( after name
algorithms/danish/stem_Unicode.sbl:2: unexpected name mark_regions after (
algorithms/danish/stem_Unicode.sbl:3: unexpected name main_suffix after name
algorithms/danish/stem_Unicode.sbl:4: unexpected name consonant_pair after
name
algorithms/danish/stem_Unicode.sbl:5: unexpected name other_suffix after
name
algorithms/danish/stem_Unicode.sbl:6: unexpected name undouble after name
algorithms/danish/stem_Unicode.sbl:7: unexpected ) after name
algorithms/danish/stem_Unicode.sbl:9: unexpected name externals after )
algorithms/danish/stem_Unicode.sbl:9: unexpected ( after name
algorithms/danish/stem_Unicode.sbl:9: unexpected name stem after (
algorithms/danish/stem_Unicode.sbl:9: unexpected ) after name
algorithms/danish/stem_Unicode.sbl:11: unexpected name strings after )
algorithms/danish/stem_Unicode.sbl:11: unexpected ( after name
algorithms/danish/stem_Unicode.sbl:11: unexpected name ch after (
algorithms/danish/stem_Unicode.sbl:11: unexpected ) after name
algorithms/danish/stem_Unicode.sbl:13: unexpected name integers after )
algorithms/danish/stem_Unicode.sbl:13: unexpected ( after name
algorithms/danish/stem_Unicode.sbl:13: unexpected name p1 after (
algorithms/danish/stem_Unicode.sbl:13: unexpected name x after name
... etc
make: *** [src_c/stem_UTF_8_danish.h] Error 1
rm algorithms/danish/stem_Unicode.sbl

Thought maybe something was wrong with Danish, so I tried English manually:

./snowball algorithms/english/stem_ISO_8859_1.sbl -o
src_c/stem_testing_english -eprefix testing_english_ -r ../runtime ­u

Result:

algorithms/english/stem_ISO_8859_1.sbl:1: unexpected name integers
algorithms/english/stem_ISO_8859_1.sbl:1: unexpected ( after name
algorithms/english/stem_ISO_8859_1.sbl:1: unexpected name p1 after (
algorithms/english/stem_ISO_8859_1.sbl:1: unexpected name p2 after name
algorithms/english/stem_ISO_8859_1.sbl:1: unexpected ) after name
algorithms/english/stem_ISO_8859_1.sbl:2: unexpected name booleans after )
algorithms/english/stem_ISO_8859_1.sbl:2: unexpected ( after name
algorithms/english/stem_ISO_8859_1.sbl:2: unexpected name Y_found after (
algorithms/english/stem_ISO_8859_1.sbl:2: unexpected ) after name
algorithms/english/stem_ISO_8859_1.sbl:4: unexpected name routines after )
algorithms/english/stem_ISO_8859_1.sbl:4: unexpected ( after name
algorithms/english/stem_ISO_8859_1.sbl:5: unexpected name prelude after (
algorithms/english/stem_ISO_8859_1.sbl:5: unexpected name postlude after
name
algorithms/english/stem_ISO_8859_1.sbl:6: unexpected name mark_regions after
name
algorithms/english/stem_ISO_8859_1.sbl:7: unexpected name shortv after name
algorithms/english/stem_ISO_8859_1.sbl:8: unexpected name R1 after name
algorithms/english/stem_ISO_8859_1.sbl:8: unexpected name R2 after name
algorithms/english/stem_ISO_8859_1.sbl:9: unexpected name Step_1a after name
algorithms/english/stem_ISO_8859_1.sbl:9: unexpected name Step_1b after name
algorithms/english/stem_ISO_8859_1.sbl:9: unexpected name Step_1c after name
... etc

Apparently, Snowball doesn't expect to see a Snowball program. What DOES it
expect? :-)

Craig


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tartarus.org/mailman/private/snowball-discuss/attachments/20111128/de9ce885/attachment.htm>


More information about the Snowball-discuss mailing list