What is the idiomic way to create error messages in LPEG ?
To be specific I would like to create error messages for incomplete bracket completion.
Example :
[ 1 2 3 -- ERROR ! MISSING ] AT LINE 20
( 1 2 3 -- ERROR ! MISSING ) AT LINE 35
What is the idiomic way to create error messages in LPEG ?
To be specific I would like to create error messages for incomplete bracket completion.
Example :
[ 1 2 3 -- ERROR ! MISSING ] AT LINE 20
( 1 2 3 -- ERROR ! MISSING ) AT LINE 35
| Empty |
| copas = require 'copas' | |
| copas.addthread -> | |
| copas.sleep 1 | |
| os.execute '<<blocking more than 1 second>>' | |
| I = 0 |
| sleep = require ("sourcevault/sleep") | |
| sleep.hello() |
| #NoEnv | |
| #SingleInstance force | |
| SendMode Input | |
| #Include <dual/dual> | |
| dual := new Dual | |
| #Include <dual/defaults> |