{
    "content": [
        {
            "type": "text",
            "text": "# acorn(1) (man)\n\n**Summary:** acorn - parse JavaScript file\n\n**Synopsis:** acorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --tokenize | — | Tokenizer mode of the parser. |\n| — | --locations | — | Attaches a \"loc\" object to each node with \"start\" and \"end\" subobjects, each of which contains the one-based line and ze |\n| — | --allow-hash-bang | — | If enabled, skip the leading hashbang line. |\n| — | --compact | — | No whitespace is used in the AST output. |\n| — | --silent | — | Do not output the AST, just return the exit status. |\n| — | --module | — | Indicates the code shouldn't be parsed as a script but as a module. This influences global strict mode and 'import' and  |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (3 lines) — 6 subsections\n  - --tokenize (2 lines)\n  - --locations (3 lines)\n  - --allow-hash-bang (2 lines)\n  - --compact (2 lines)\n  - --silent (2 lines)\n  - --module (8 lines)\n\n## Full Content\n\n### NAME\n\nacorn - parse JavaScript file\n\n### SYNOPSIS\n\nacorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]\n\n### DESCRIPTION\n\nacorn is a utility to parse a JavaScript file from the command line.  It accepts as arguments\nthe input file.  The utility spits out the syntax tree as JSON data.\n\n### OPTIONS\n\n--ecma3, --ecma5, --ecma6, --ecma7, ..., --ecma2015, --ecma2016\nSets the ECMAScript version to parse.  Default is version 7.\n\n#### --tokenize\n\nTokenizer mode of the parser.\n\n#### --locations\n\nAttaches a \"loc\" object to each node with \"start\" and \"end\" subobjects, each of  which\ncontains the one-based line and zero-based column numbers in {line, column} form.\n\n#### --allow-hash-bang\n\nIf enabled, skip the leading hashbang line.\n\n#### --compact\n\nNo whitespace is used in the AST output.\n\n#### --silent\n\nDo not output the AST, just return the exit status.\n\n#### --module\n\nIndicates  the  code shouldn't be parsed as a script but as a module.  This influences\nglobal strict mode and 'import' and 'export' declarations.\n\n--help Print the usage information and quit.\n\n\n\n1640710263                                     acorn(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "acorn",
        "section": "1",
        "mode": "man",
        "summary": "acorn - parse JavaScript file",
        "synopsis": "acorn [--ecma3 | --ecma5 | --ecma6 | --ecma7 | ... | --ecma2015 | --ecma2016] [--tokenize]\n[--locations] [--allow-hash-bang] [--compact] [--silent] [--module] [--help] [--]\n[infile]",
        "flags": [
            {
                "flag": "",
                "long": "--tokenize",
                "arg": null,
                "description": "Tokenizer mode of the parser."
            },
            {
                "flag": "",
                "long": "--locations",
                "arg": null,
                "description": "Attaches a \"loc\" object to each node with \"start\" and \"end\" subobjects, each of which contains the one-based line and zero-based column numbers in {line, column} form."
            },
            {
                "flag": "",
                "long": "--allow-hash-bang",
                "arg": null,
                "description": "If enabled, skip the leading hashbang line."
            },
            {
                "flag": "",
                "long": "--compact",
                "arg": null,
                "description": "No whitespace is used in the AST output."
            },
            {
                "flag": "",
                "long": "--silent",
                "arg": null,
                "description": "Do not output the AST, just return the exit status."
            },
            {
                "flag": "",
                "long": "--module",
                "arg": null,
                "description": "Indicates the code shouldn't be parsed as a script but as a module. This influences global strict mode and 'import' and 'export' declarations. --help Print the usage information and quit. 1640710263 acorn(1)"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "--tokenize",
                        "lines": 2,
                        "long": "--tokenize"
                    },
                    {
                        "name": "--locations",
                        "lines": 3,
                        "long": "--locations"
                    },
                    {
                        "name": "--allow-hash-bang",
                        "lines": 2,
                        "long": "--allow-hash-bang"
                    },
                    {
                        "name": "--compact",
                        "lines": 2,
                        "long": "--compact"
                    },
                    {
                        "name": "--silent",
                        "lines": 2,
                        "long": "--silent"
                    },
                    {
                        "name": "--module",
                        "lines": 8,
                        "long": "--module"
                    }
                ]
            }
        ]
    }
}