waxeye-org / waxeye

Waxeye is a parser generator based on parsing expression grammars (PEGs). It supports C, Java, JavaScript, Python, Racket, and Ruby.
https://waxeye-org.github.io/waxeye/index.html
Other
235 stars 38 forks source link

waxeye on PLT #4

Closed wwall closed 11 years ago

wwall commented 11 years ago

install waxeye as write in instruction for scheme in linux, but in DrRacket 5.3.6 have error when try compile file example.scm fom waxeye/src/example/scheme

how i can correct it?

wwall commented 11 years ago

reload, reinstall waxeye.

$>mkdir tst $>cd tst $>cp ../src/example/scheme/calculator.scm . $>cp ../grammars/calc.waxeye . $>waxeye -g scheme . calc.waxeye $>drracket caculator.scm

after run i have error Добро пожаловать в DrRacket, версия 5.3.6 [3m]. Язык: Determine language from source; memory limit: 128 MB. link: bad variable linkage; reference to a variable that is not a procedure or structure-type constant across all instantiations reference phase level: 0 variable module: "/home/wwall/racket/collects/waxeye/fa.rkt" variable phase: 0 reference in module: "/home/wwall/src/waxeye/tst/parser.scm" in: make-fa

but $>mzscheme calculator.scm work fine

what is it?

wwall commented 11 years ago

after run raco setup waxeye buid directory all work very fine