Lojban
The Logical Language
Log in
Username:
Password:
I forgot my password |
CapsLock is on.
Log in
History: PEG
View page
Show All Versions
Source of version: 6
«
»
Parsing Expression grammars. Parsing expression grammars allow for full lookahead and backtracking in time linear to the input size. This makes them more expressive than ((YACC)) or ((BNF)), which are limited in the how far they look ahead, and as a consequence how far they can backtrack. They also require more memory than either YACC or BNF to parse an equivalently sized input. PEG grammars also do not have a separate lexing stage. Lexing and parsing are performed at the same time, using the same language for both. See wikipedia for additional general information on [http://en.wikipedia.org/wiki/Parsing_expression_grammar|Parsing Expression Grammars]. ! 4th Baseline Machine Grammar Proposal ((.alyn.post.)) is working on a proposal for a 4th Machine Grammar Baseline, replacing the 3rd baseline's ((YACC)) grammar with a PEG grammar. !! Morphology Since PEG does not have a separate lexing stage, any PEG Machine Grammar will also need to express the Lojban Morphology in PEG. * ((BPFK Section: Formal Morphology)) !! Technical Points of the PEG language * The '.' characters means any character, in any character set. It is only used after fa'o, which unconditionally consumes the remaining characters. * '!.' is the way EOF is tested in PEG. * space is defined as the literal '.' (as opposed to the '.' operator of PEG), whitespace, and all punctuation other than ',' and '''. !! CLL The CLL will need to be updated to account for changes resulting from the translation of the grammar to PEG. Main Article: ((CLL PEG Errata)) ! Open Discussion Points * jbogenturfa'i further transforms the PEG grammar into an idealized representation. This parse tree is suitable for programmatic manipulation. Why is this idealized parse tree not the way the PEG is written? ! Lojban parsers that use PEG * ((camxes)), the original PEG parser from which all others are based. * ((jbogentufa'i)) * ((jbominje)), John Leuner's PEG grammar. The [http://subvert-the-dominant-paradigm.net/~jbominji/code/lojban_grammar.peg|lojban_grammar.peg|grammar] is derived from camxes. ! See Also * [http://www.teddyb.org/~rlpowell/hobbies/lojban/grammar/|Robin Powell's PEG Grammar Page]. This document builds on the work ((camgusmis)) and ((xorxes)) have done, documented on this page. * ((Grammar)), for a discussion of Lojban's grammar beyond PEG. * ((YACC)), the language in which Lojban's official grammar is defined. * ((BNF)), widely considered easier to read than the YACC grammar.
History
Enable pagination
rows per page
HTML diff
Side-by-side diff
Side-by-side diff by characters
Inline diff
Inline diff by characters
Full side-by-side diff
Full side-by-side diff by characters
Full inline diff
Full inline diff by characters
Unified diff
Side-by-side view
HTML diff
Side-by-side diff
Advanced
Information
Version
Tue 10 of Jun, 2014 04:19 GMT
mukti
from 68.173.146.212
13
Sun 19 of Jan, 2014 03:43 GMT
guskant
from 123.230.96.166
12
Sun 16 of Sep, 2012 14:05 GMT
gleki
from 178.204.70.160
11
Fri 04 of Nov, 2011 14:33 GMT
najrut
from 178.205.62.228
10
Sun 03 of Jul, 2011 22:44 GMT
alyn.post
from 74.93.1.121
actually, I have an errata page specifically for PEG.
8 - 9
Wed 09 of Feb, 2011 12:25 GMT
alyn.post
from 68.35.165.60
Add some uncategorized material relating to the baseline change proposal.
7
Wed 02 of Feb, 2011 04:48 GMT
alyn.post
from 68.35.165.60
Add link to Robin's website in See Also section.
6
Wed 02 of Feb, 2011 01:45 GMT
alyn.post
from 68.35.165.60
link in CLL PEG Errata
3 - 5
Tue 01 of Feb, 2011 23:53 GMT
alyn.post
from 68.35.165.60
flesh out the PEG page.
2
Mon 17 of May, 2004 19:55 GMT
arj
from 129.241.210.216
1
Select action to perform with checked...
Remove
OK
About
Introduction
What Others Say
FAQ
Learning
Books
Vocabulary
Lojbanic Software
Community
Web/Email Forums
IRC Chat
Links
News
Dictionary
Swag
Multimedia
Lojbanic Texts
Audio
Wiki
Recent Changes
Popular Pages
How To Edit
The LLG
Official Projects
Publications
Donate!
Contact Us
Search Lojban Resources
Show PHP error messages
Filter:
NOTICE (E_NOTICE):
Trying to access array offset on value of type bool
At line 102 in lib/userprefs/userprefslib.php
NOTICE (E_NOTICE):
Trying to access array offset on value of type bool
At line 103 in lib/userprefs/userprefslib.php