Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nichtich/lua-edtf
experimental Lua parser for Extended Date/Time Format (EDTF)
https://github.com/nichtich/lua-edtf
Last synced: 5 days ago
JSON representation
experimental Lua parser for Extended Date/Time Format (EDTF)
- Host: GitHub
- URL: https://github.com/nichtich/lua-edtf
- Owner: nichtich
- Created: 2011-03-25T23:14:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-03-26T00:07:39.000Z (over 13 years ago)
- Last Synced: 2024-10-30T16:24:58.823Z (about 2 months ago)
- Language: Lua
- Homepage:
- Size: 97.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
lua-edtf - experimental Lua module to parse extended date/time format
BACKGROUND
The Library of Congress works on an Extended Date/Time Format (EDTF):
http://www.loc.gov/standards/datetime/I play around with the Lua programming language and formal grammars.
This module defines a formal grammar to parse (currently a subset of)
the proposed EDTF. The grammar is not written as context-free language
in Backus-Naur Form, but as Parsing Expression Grammar (PEG).REQUIREMENTS
You need a Lua interpreter and LPeg pattern matching library for Lua:
http://www.inf.puc-rio.br/~roberto/lpeg/The Debian package 'liblua5.1-lpeg2' simplifies installation.
USAGE
The script 'examples.lua' contains examples and test cases.
STATUS
This module is purely experimental, it only covers a small subset of
the proposed EDTF. I have no intention to finish the parser, but maybe
it is of use to someone. Feel free to extend and fork this project:
http://github.com/nichtich/lua-edtfAUTHOR
Jakob Voss
LICENSE
Licensed under the GNU General Public License (GPL)