[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] Re: Further Parser Confusion
On Sat, Mar 27, 2004 at 02:55:26AM -0800, Robin Lee Powell wrote:
> Parsing an example sentence:
>
> rlpowell@chain.digitalkingdom.org> echo "le broda .i je klama" | parser -h -t
>
[snip]
>
> Note that fixing the I_root_956 bug (by making /*TRY(I_root_956_2);*/
> in lexrulek.c) causes this sentence to fail to parse.
It also breaks *all* ijeks.
statement_A_12 : statement_B_13
| statement_A_12 I_JEK_820 statement_B_13
| statement_A_12 I_JEK_820
;
I_JEK_820 : lexer_T_1000
| lexer_T_1000 free_modifier_32
;
The problem is that, as far as I can tell, lexer_T_1000 never got
defined; it should have an entry in a lexrules?.c file:
$ grep lexer_T *
grammar.300:%token lexer_T_720 /* flags I_JEK */
grammar.300:/*%token lexer_T_1000 /* : lexer_T_720 I_545 simple_JOIK_JEK_957 */
grammar.300:I_JEK_820 : lexer_T_1000
grammar.300: | lexer_T_1000 free_modifier_32
grammar.300:lexer_T_1000 : lexer_T_720 I_545 simple_JOIK_JEK_957
grammar.c:#define lexer_T_1000 1000
grammar.c:"lexer_R_990","lexer_S_995","lexer_T_1000","lexer_U_1005","lexer_V_1010","lexer_W_1015",
grammar.h:#define lexer_T_1000 1000
grammar.y:/*%token lexer_T_720 720 /* flags I_JEK */
grammar.y:%token lexer_T_1000 1000 /* : lexer_T_720 I_545 simple_JOIK_JEK_957 */
grammar.y:I_JEK_820 : lexer_T_1000
grammar.y: | lexer_T_1000 free_modifier_32
-Robin
--
Me: http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin.
"Constant neocortex override is the only thing that stops us all
from running out and eating all the cookies." -- Eliezer Yudkowsky
http://www.lojban.org/ *** .i cimo'o prali .ui