Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
jbogenturfa'i
.i lo lojbo ke pe'a jajgau ratcu ke'e genturfa'i
TOC »
Description
jbogenturfa'i is a parser for the Lojban language.
Note that this egg has not yet been written.
Authors
.alyn.post.. The morphology file used by this parser was written by .xorxes. The grammar file used by this parser was translated and modified from the official grammar by .camgusmis.
Requirements
Requires genturfa'i, a scheme packrat parser.
Source Code
The source code for this egg can be viewed by version:
A copy of this project is also hosted on github:
History
There are multiple grammar definitions and parsers available for Lojban.
The official grammar is written in YACC. This grammar is the only one endorsed by the Logical Language Group, and represents the official grammar of the language.
As the YACC parser is difficult to read, there is also a BNF grammar file. Where this file differs from the YACC file, the YACC file takes precedence. The BNF file is easier to understand.
Since publishing the official grammar, Brian Ford coined the modern terms PEGs and packrat parsing, and other people took up the work of developing PEG parsers.
PEG parsers hold the promise of specifying the full grammar of Lojban, including the morphology, in a language (PEG) that is easy to understand by humans.
Robin Lee Powell has published "Issues With The Lojban Formal Grammar" discussing the ways in which the YACC and BNF grammar are not suitable for Lojban, and proposes using a PEG-specified grammar to parse Lojban.
This work culminated in the released of camxes, a parser for Lojban's PEG grammar written in Java.
jbogenturfa'i uses the morphology and grammar file developed for camxes.
Wish List
- Write this program.
- Add the grammar parsed by this egg to the List of all variants of the PEG grammar.
- C interface for grammar parsing. (For integration with other systems and languages.
Related Projects
- camxes is a Lojban parser written in Java.
- jbofi'e is a Lojban parser using the BNF grammar.
- jbonminji is a Lojban parser for Common Lisp.
License
Copyright (c) 2010 ".alyn.post." <alyn.post@lodockikumazvati.org> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Version History
- 0.0.1
- Initial release.