Hi!

Thanks for the status report!

Michael Lucy <michaelgl...@gmail.com> writes:

> Files I've added so far:
> guile/modules/ice-9/peg.scm (I assume this is the right place to put this?)

No, it should rather go under ‘module/language/peg.scm’, for the sake of
consistency with other compiler front-ends.  But see below.

> PEG compiler: Works for all the grammars I've tested, no known bugs.
> Currently compiles to Scheme code rather than Tree-IL for debugging.

It should rather compiler to tree-IL, like other front-ends, which is
very close to Scheme anyway.

> 2. Tests aren't standardized (peg.test looks nothing like the other
> .test files).

Well, you know what to do then.  ;-)

> 3. This:
>
> scheme@(guile-user)> (use-modules (ice-9 peg))
> ;;; note: source file /home/zededarian/guile/module/ice-9/peg.scm
> ;;;       newer than compiled
> /home/zededarian/guile/cache/guile/ccache/2.0-0.R-LE-4/home/zededarian/guile/module/ice-9/peg.scm.go
> ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-autocompile argument to disable.
> ;;; compiling /home/zededarian/guile/module/ice-9/peg.scm
> ;;; WARNING: compilation of /home/zededarian/guile/module/ice-9/peg.scm 
> failed:
> ;;; key wrong-type-arg, throw args ("vm-debug-engine" "Wrong type to
> apply: ~S" (#f) (#f))
>
> Somehow it works fine despite the warnings.  Can anybody shed light on
> what this means?

Actually it doesn’t work.  Try:

  $ ./meta/guile --no-autocompile
  > (use-modules (ice-9 peg))

It should trigger the debugger from where you can get a backtrace.

Thanks,
Ludo’.


Reply via email to