tion 14.2: How can we parse JavaScript to create an AST?</h2>
<p>A parser for a simple language like arithmetic or JSON is relatively easy to write.
A parser for a language as complex as JavaScript is much more work,
so we will use one called <span class="ix-entry" ix-key="Acorn" markdown="1"><a href="https://github.com/acornjs/acorn">Acorn</a></span> instead.
Acorn takes a string containing source code as input
and produces an <span class="ix-entry" ix-key="abstract syntax tree" markdown="1"><a class="gl-r