01mf02 / jaq

A jq clone focussed on correctness, speed, and simplicity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

negative exponent in numeric literals

pkoppstein opened this issue · comments

$ jq -n '1e-1'
0.1
$ gojq -n '1e-1'
0.1
$ jaq -n '1e-1'
Error: Unexpected token, expected ?, /=, !=, <=, ., -=, end of input, [, /, //, %, as, >=, -, *=, ==, %=, or, +, |, <, *, |=, =, ,, and, +=, >
   ╭─[<unknown>:1:2]
   │
 1 │ 1e-1
   ·  ┬  
   ·  ╰── Unexpected token e
───╯