unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Difficulties byte-compiling very large .el file
@ 2009-08-19 21:49 Aemon Cannon
  2009-08-20  8:27 ` Andreas Schwab
  2009-08-25 10:16 ` Aidan Kehoe
  0 siblings, 2 replies; 12+ messages in thread
From: Aemon Cannon @ 2009-08-19 21:49 UTC (permalink / raw)
  To: emacs-devel

This is a re-post of a question I asked of gnu.emacs.help. Xah Lee
suggested I try this mailing list.
-------------------------------------------------------------------------------------------------------

I've been working on a project to create an elisp target for the ANTLR
parser-generator. Here's the project page:
http://github.com/aemoncannon/antlr-elisp/tree/experimental

The generated parser for ActionScript 3 is over 30k lines long and
fails to byte-compile with the message in Emacs 22:
as3_elispParser.el:31515:33:Error: Invalid character: 256, #o400,
#x100

..and this message in Emacs 23:
../test/grammars/as3_elispParser.el:31515:33:Error: Args out of range:
256, 0, 255

Here's the source in question: http://aemon.com/file_dump/as3_elispParser.el

If you're interested in trying to compile, you'll need:
http://github.com/aemoncannon/antlr-elisp/raw/c411f29743e3182523e0ad27a9384b6c4210d55e/src/runtime/ELisp/a3el-runtime.el

I don't think the error is actually related to the content of the
file, as there are no non-ascii characters in the file, and deleting
seemingly arbitrary chunks makes the error go away.

There are lots of "Warning: reference to free variable ...." warnings,
but I understand where those are coming from and I'm not worried about
them.

Bear in mind there are *lots* of macros being expanded. Most of the
forms with the prefix 'a3el' are macros.

Any ideas?




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

end of thread, other threads:[~2009-09-01 22:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 21:49 Difficulties byte-compiling very large .el file Aemon Cannon
2009-08-20  8:27 ` Andreas Schwab
2009-08-20 13:07   ` Aemon Cannon
2009-08-20 13:23     ` Andreas Schwab
2009-08-20 14:29       ` Aemon Cannon
2009-08-20 18:30     ` Eli Zaretskii
2009-08-25 10:16 ` Aidan Kehoe
2009-08-25 11:07   ` Miles Bader
2009-08-25 11:50     ` Aidan Kehoe
2009-08-25 15:04       ` Aemon Cannon
2009-09-01 22:41         ` Aemon Cannon
2009-08-29  0:37   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).