antlr javascript compress

33 views
Skip to first unread message

Zhihan Xia

unread,
Dec 24, 2015, 5:52:03 AM12/24/15
to antlr-discussion
Antlr4 was experimentally used in one of my recent project. While using the whole JS package, I got the following two issues:

1. the app server I'm using somehow does not support dependencies with sub-folders;

2. uploading resources to the app server has certain restrictions which make importing 50+ JS files to the system pretty painful (and hard for future maintainability).

I'm thinking if we can have a generated bundle JS file which contains all the 50+ files in one? A compressed one might be even better?

Any ideas of suggestions on this topic?

Thank you in advance.

Eric Vergnaud

unread,
Dec 25, 2015, 5:02:04 AM12/25/15
to antlr-discussion
Hi,

somebody is already working on this topic, check this list.
There are many compression frameworks out there, an important requirement one is that the 'require' function needs to be NodeJS compatible, which is not the case with many of them.

Eric

Zhihan Xia

unread,
Dec 29, 2015, 4:50:23 AM12/29/15
to antlr-discussion
Thanks a lot, Eric!
I checked a bit in this group but failed to find topics relating to the current progress of JS compression work of antlr...
If you happens to know where is the discussion, could you please point me to it? Thanks!

在 2015年12月25日星期五 UTC+1上午11:02:04,Eric Vergnaud写道:

Eric Vergnaud

unread,
Dec 29, 2015, 6:14:55 AM12/29/15
to antlr-discussion
Actually it was on GitHub: https://github.com/antlr/antlr4/pull/971
Reply all
Reply to author
Forward
0 new messages