fix stray spelling error: empry -> empty

This commit is contained in:
Futago-za Ryuu 2018-10-15 08:03:53 +01:00
parent 27687615e5
commit afc653c46f

View file

@ -2,7 +2,7 @@
Whether you are using the CLI or the API, as long as you pass the `trace` option, the generated parser can trace it's progress by calling `tracer.trace( event )`, which can then be overwritten by passing an alternative tracer in the options to the generated parser.
You can also optionally disable the default tracer by passing `features: { DefaultTracer: false }` to `peg.generate` or `peg.compiler.compile`, in which case a empry function will be called by default unless a tracer is passed to the parser.
You can also optionally disable the default tracer by passing `features: { DefaultTracer: false }` to `peg.generate` or `peg.compiler.compile`, in which case a empty function will be called by default unless a tracer is passed to the parser.
The `event` passed to the `trace` method contains the following properties: