[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] Re: gleki xisri'i
de'i li 25 pi'e 12 pi'e 2008 la'o fy. Robin Lee Powell .fy. cusku zoi
skamyxatra.
> What part of "working CFG" was unclear? What you produced isn't
> one, as far as I can tell.
>
> What you produced is exactly the same as the current official
> parser: a yacc grammar that uses hard-to-port tricks to deal with
> elidable terminators.
.skamyxatra
Good point. However, note that the entire point of the %prec trick is to force
Yacc to shift when it detects ambiguity in the rules. If another parser
generator can be told in some implementation-defined manner to always shift,
you can port the grammar over by stripping out the %precs, reformatting the BNF
as necessary, and adding whatever the other parser needs to know to shift. I'm
not familiar with any other parser generators, so I don't know how hard this
would be.
> Regardless, I can't verify any of this myself because I haven't been
> able to run it, as I said in another mail. Some help there would be
> nice.
I'm working on that. If you can tolerate a subpar lexer (i.e., one that
accepts invalid {brivla}) for the purposes of testing, I should be able to have
a program that shows the grouping of grammatical constructs with my grammar by
late tonight.
mu'omi'e la'o gy. Minimiscience .gy.
--
mi klama .i mi viska .i mi fanva fi la lojban.
To unsubscribe from this list, send mail to lojban-list-request@lojban.org
with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if
you're really stuck, send mail to secretary@lojban.org for help.