Re: unmatched type specification error

Boris D <[email protected]> Sun, 25 Jan 2009 20:27:56 -0800
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Thanks again, John. I found the missing "glue" (in the ML-Lex user 
declarations):

type lexarg = string
type arg = lexarg



John Reppy wrote:
> You are probably missing the definition of the %arg
> decl in the lexer specification.
>
>     - John
>
> On Jan 25, 2009, at 5:37 PM, Boris D wrote:
>
>> Following the ML-Yacc user guide, I created a file glue.sml with the
>> following content:
>>
>> structure SlpLrVals = SlpLrValsFun(structure Token = LrParser.Token);
>> structure SlpLex = SlpLexFun(structure Tokens = SlpLrVals.Tokens);
>> structure SlpParser = JoinWithArg(
>>        structure ParserData = SlpLrVals.ParserData
>>        structure Lex=SlpLex
>>        structure LrParser = LrParser);
>>
>> Compiling my parser, I get the following error:
>>
>> glue.sml:3.23-6.33 Error: unmatched type specification: arg
>>
>> Any idea what is wrong with this code?
>>
>> TIA.
>>
>> ------------------------------------------------------------------------------ 
>>
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Smlnj-list mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword