unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* GSOC PEG project
@ 2010-07-05  6:05 Michael Lucy
  2010-07-05 22:40 ` Ludovic Courtès
  2010-07-08 10:29 ` Andy Wingo
  0 siblings, 2 replies; 15+ messages in thread
From: Michael Lucy @ 2010-07-05  6:05 UTC (permalink / raw)
  To: guile-devel

Hi,

I finally got things into a usable state, so I pushed out what I have
to origin/mlucy.  Many apologies if I did something wrong; I've never
used git with remote repositories before.

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

Status of things right now:
PEG compiler: Works for all the grammars I've tested, no known bugs.
Currently compiles to Scheme code rather than Tree-IL for debugging.
Comments: Pretty good I think, but I could stand to have more.
External documentation: None so far.
Syntactic Sugar: Canonical string-based PEGs can be parsed just fine.
Testing: Small test suite.  Needs to be standardized with the other .test files.
Benchmarks: None so far, but I haven't really done any optimization so
I'd bet it performs poorly.

Problems:

1. PEG compiler compiles to scheme code rather than TREE-IL, and uses
some custom pieces of syntax that I then have to export.  I've been
meaning to ask, how big a deal is this?  I originally had it compile
to Scheme while I was debugging things, but the Scheme gets compiled
down to TREE-IL form, right?  Should I fix it to compile straight to
TREE-IL anyway rather than just finding a way to get around having to
export all that syntax?

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

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?

4. External documentation hasn't even been started yet.

5. The pretty-print module doesn't get loaded when peg does, and some
of my functions use it.  I have:

:use-module (ice-9 pretty-print)

in my define-module form at the top of peg.scm; shouldn't that take care of it?

Any thoughts or comments?  I'm sorry I didn't get this into a branch earlier.



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-07-18 11:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-05  6:05 GSOC PEG project Michael Lucy
2010-07-05 22:40 ` Ludovic Courtès
2010-07-05 23:59   ` Michael Lucy
2010-07-06  1:41     ` No Itisnt
2010-07-06 21:37       ` Ludovic Courtès
2010-07-08 16:23       ` Andy Wingo
2010-07-08 16:21     ` Andy Wingo
2010-07-11  7:48       ` Michael Lucy
2010-07-17 12:21         ` Andy Wingo
2010-07-17 12:56           ` Ludovic Courtès
2010-07-18 11:57             ` Andy Wingo
2010-07-08 10:29 ` Andy Wingo
2010-07-09  7:58   ` Michael Lucy
2010-07-10  9:49     ` Michael Lucy
2010-07-17 12:19     ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).