From lojban-out@lojban.org Sun Mar 28 00:27:37 2004 Return-Path: X-Sender: lojban-out@lojban.org X-Apparently-To: lojban@yahoogroups.com Received: (qmail 39685 invoked from network); 28 Mar 2004 08:25:15 -0000 Received: from unknown (66.218.66.167) by m12.grp.scd.yahoo.com with QMQP; 28 Mar 2004 08:25:15 -0000 Received: from unknown (HELO chain.digitalkingdom.org) (64.81.49.134) by mta6.grp.scd.yahoo.com with SMTP; 28 Mar 2004 08:25:15 -0000 Received: from lojban-out by chain.digitalkingdom.org with local (Exim 4.30) id 1B7VbV-00041d-Pp for lojban@yahoogroups.com; Sun, 28 Mar 2004 00:25:13 -0800 Received: from dsl081-049-134.sfo1.dsl.speakeasy.net ([64.81.49.134] helo=chain.digitalkingdom.org) by chain.digitalkingdom.org with esmtp (Exim 4.30) id 1B7Var-00040b-8c; Sun, 28 Mar 2004 00:24:33 -0800 Received: with ECARTIS (v1.0.0; list lojban-list); Sun, 28 Mar 2004 00:24:29 -0800 (PST) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.30) id 1B7Vah-00040G-Lr for lojban-list@lojban.org; Sun, 28 Mar 2004 00:24:23 -0800 Date: Sun, 28 Mar 2004 00:24:23 -0800 Message-ID: <20040328082423.GN18619@digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org References: <20040327105526.GA18619@digitalkingdom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040327105526.GA18619@digitalkingdom.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-archive-position: 7360 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org X-list: lojban-list To: lojban@yahoogroups.com X-eGroups-Remote-IP: 64.81.49.134 X-eGroups-From: Robin Lee Powell From: Robin Lee Powell Reply-To: rlpowell@digitalkingdom.org Subject: [lojban] Re: Further Parser Confusion X-Yahoo-Group-Post: member; u=116389790 X-Yahoo-Profile: lojban_out X-Yahoo-Message-Num: 21834 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