Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moritz/grammar-errorreporting
A Perl 6 role to improve error reporting in a grammar.
https://github.com/moritz/grammar-errorreporting
Last synced: 16 days ago
JSON representation
A Perl 6 role to improve error reporting in a grammar.
- Host: GitHub
- URL: https://github.com/moritz/grammar-errorreporting
- Owner: moritz
- License: gpl-3.0
- Created: 2017-08-19T11:26:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T14:25:48.000Z (about 7 years ago)
- Last Synced: 2024-11-05T20:51:42.274Z (2 months ago)
- Language: Perl 6
- Size: 17.6 KB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
NAME
====Grammar::ErrorReporting - Error reporting infrastructure for Perl 6 grammars
SYNOPSIS
========```perl6
grammar Parenthized does Grammar::ErrorReporting {
token TOP { '(' ~ ')' \d+ }
}
Parenthized.parse('(123');
```This produces an error message like this:
```
Cannot parse input: no closing ')'
at line 1, around "(123⏏"
(error location indicated by ⏏)
```DESCRIPTION
===========Please see the POD in `lib/Grammar/ErrorReporting.pm6` for more documentation.
AUTHOR
======Moritz Lenz [email protected]
COPYRIGHT AND LICENSE
=====================Copyright © Moritz Lenz [email protected]
License GPLv3: The GNU General Public License, Version 3, 29 June 2007
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.