[plt-scheme] Reporting syntax-error to a DrScheme tool

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Feb 28 19:41:07 EST 2006

Robby Findler wrote:
> Is errortrace annotating the code? 

No? In lexer.scm which contains the lexer and parser
I have the followig requires

(module lexer mzscheme
   (provide parse-port parse-string)

   (require (lib "lex.ss" "parser-tools")
            (prefix : (lib "lex-sre.ss" "parser-tools"))
            (lib "yacc.ss" "parser-tools")
            (lib "readerr.ss" "syntax")
            (lib "pretty.ss"))

And in tool.ss I have

(module tool mzscheme
   (require (planet "file.ss" ("dherman" "io.plt" 1 6))
            (lib "file.ss")
            (lib "framework.ss" "framework")
            (lib "tool.ss" "drscheme")
            (lib "match.ss")
            (lib "mred.ss" "mred")
            (lib "unitsig.ss")
            (lib "class.ss")
	   (lib "string-constant.ss" "string-constants")
            (lib "etc.ss")
            "lexer.scm")

-- 
Jens Axel Søgaard




Posted on the users mailing list.