"Jimmy O'Regan" <jore...@gmail.com>
writes:

> On 21 October 2011 09:27, Kevin Brubeck Unhammer <unham...@fsfe.org> wrote:
>> "Jimmy O'Regan" <jore...@gmail.com>
>>> I've fixed it in SVN. One of the macros was being called with too few
>>> parameters, which was causing a segfault.
>>
>> $ apertium-transfervm-compiler -i apertium-en-ca.ca-en.t1x  -o ca-en.v1x.bin
>> Error: line 6 107, macro 'f_bcond' needs 2 parameters, passed 1
>
> Why .bin? I thought that one of the problems with was that it
> /doesn't/ output binary.

Ah, true, hadn't even looked at that.

> ISTR that java transfer issues these warnings too, and I'd be far more
> inclined to use that for debugging because java debuggers exist, and
> the (uncompiled) output is easier to read by far.

It does, as well as some others :)

$ apertium-preprocess-transfer-bytecode-j apertium-en-ca.ca-en.t1x 
apertium-en-ca.ca-en.t1x.class
Parsing apertium-en-ca.ca-en.t1x
// WARNING: Macro f_bcond is invoked with too few parameters. Adding blank 
parameters  - for <transfer default="chunk">/<section-rules>/<rule comment="pro 
+ pro + ANAR + INF (m'ho va donar - gave it to 
me)">/<action>/<choose>/<otherwise>/<call-macro n="f_bcond">
// WARNING: Attribute a_prep is not defined. Valid attributes are: [a_nom, 
a_np_acr, a_adj, grau, a_det, a_num, a_verb, pron, sep, a_adv, a_rel, a_pp, 
a_prn, tipus_prn, pers, gen, nbr, temps, neg, lem, lemq, lemh, whole, tags, 
chname, chcontent, content]
// Replacing with error_UNKNOWN_ATTR - for <transfer 
default="chunk">/<section-rules>/<rule comment="a + DET + MESO ( al juliol → in 
July">/<action>/<out>/<chunk case="caseFirstWord" 
name="in_meso">/<tags>/<tag>/<clip part="a_prep" pos="1" side="tl">
Compiling: javac -cp /usr/local/bin/../share/apertium/lttoolbox.jar 
./apertium_en_ca_ca_en_t1x.java


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to