From rlpowell@digitalkingdom.org Sun Mar 28 00:24:29 2004 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 To: lojban-list@lojban.org Subject: [lojban] Re: Further Parser Confusion 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 From: Robin Lee Powell 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 Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list 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