Skip to content

Collect jq/JBOL documentation oddities #44

@sshine

Description

@sshine

The following are mainly observations about the jq documentation in JBOL, but is open to collect any oddity, discrepancy or digression in the documentation that helps a jq implementer.

  • JBOL: Schematic syntax for special constructs mentions an if ... then ... end without an else part, but this does not work:

    $ jq -n 'if 1 then 2 end' 
    jq: error: syntax error, unexpected end (Unix shell quoting issues?) at <top-level>, line 1:
    if 1 then 2 end            
    jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
    if 1 then 2 end
    jq: 2 compile errors
    

    At the same time, JBOL's language grammar does not allow it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions