Package: miller
Version: 6.2.0-1
Severity: normal

Hi Stephen,

Thank you very much for maintaining Debian's
miller package.

I'm so impressed with how 

    practical and 

    sophisticated

it is that I'm inclined to describe it as "an
intellectual tour de force".

The main reason I'm writing is to report what I
think may be 

    a minor parsing error and

    a way to work around it.

Here's a nice, short and sweet one liner that
demonstrates the problem on bash's command line,
at least on my computer:

    $ echo |  mlr put -q 'print 2**-0.5' 
      mlr: cannot parse DSL expression.
      Parse error on token "-" at line 1 column 10.
      Expected one of:
        { ( field_name $[ braced_field_name $[[ $[[[ full_srec oosvar_name @[ 
braced_oosvar_name
        full_oosvar all non_sigil_name float int string_literal 
regex_case_insensitive
        int_literal float_literal boolean_literal null_literal inf_literal 
nan_literal
        const_M_PI const_M_E panic [ ctx_IPS ctx_IFS ctx_IRS ctx_OPS ctx_OFS 
ctx_ORS
        ctx_FLATSEP ctx_NF ctx_NR ctx_FNR ctx_FILENAME ctx_FILENUM env func

Please note that mlr appears to be unable to parse
the negative exponent "-0.5".

I'm happy to report I worked around the problem by
enclosing the negative exponent in parentheses.

Here's an example:

    $ echo |  mlr put -q 'print 2**(-0.5)'
    0.7071067811865475

If you decide to mention this issue to the
upstream author, John Kerl, feel free to let him
know how impressed I am with his code.

Thanks,
Kingsley

miller recommends no packages.

miller suggests no packages.

-- no debconf information

Reply via email to