Discussion:
[ragel-users] Ragel grammars for HTML, CSS, and JavaScript
Brian Pane
2010-06-15 12:51:07 UTC
Permalink
I made some Ragel grammars for HTML, CSS, and JavaScript as part of a
project. ?Just in case they're useful to anybody else out there, I've
released them under the Apache license:

http://github.com/brianpane/jitify-core (look in the src/core
subdirectory for the *.rl files).

Each is based on the corresponding language's spec, but modified to
reduce nondeterminism and to try to be more forgiving of real-world
content. ?The grammars are by no means perfect, but they might serve
as a decent starting point for other folks who need to parse those
languages.

-Brian
Adrian Thurston
2010-06-15 14:26:40 UTC
Permalink
Thanks Brian! A link is on the way.

Adrian
------Original Message------
From: Brian Pane
Sender: ragel-users-bounces at complang.org
To: ragel-users
ReplyTo: ragel-users at complang.org
Subject: [ragel-users] Ragel grammars for HTML, CSS, and JavaScript
Sent: Jun 15, 2010 7:51 AM

I made some Ragel grammars for HTML, CSS, and JavaScript as part of a
project. ?Just in case they're useful to anybody else out there, I've
released them under the Apache license:

http://github.com/brianpane/jitify-core (look in the src/core
subdirectory for the *.rl files).

Each is based on the corresponding language's spec, but modified to
reduce nondeterminism and to try to be more forgiving of real-world
content. ?The grammars are by no means perfect, but they might serve
as a decent starting point for other folks who need to parse those
languages.

-Brian
Brian Pane
2010-06-15 12:51:07 UTC
Permalink
I made some Ragel grammars for HTML, CSS, and JavaScript as part of a
project. ?Just in case they're useful to anybody else out there, I've
released them under the Apache license:

http://github.com/brianpane/jitify-core (look in the src/core
subdirectory for the *.rl files).

Each is based on the corresponding language's spec, but modified to
reduce nondeterminism and to try to be more forgiving of real-world
content. ?The grammars are by no means perfect, but they might serve
as a decent starting point for other folks who need to parse those
languages.

-Brian
Adrian Thurston
2010-06-15 14:26:40 UTC
Permalink
Thanks Brian! A link is on the way.

Adrian
------Original Message------
From: Brian Pane
Sender: ragel-users-bounces at complang.org
To: ragel-users
ReplyTo: ragel-users at complang.org
Subject: [ragel-users] Ragel grammars for HTML, CSS, and JavaScript
Sent: Jun 15, 2010 7:51 AM

I made some Ragel grammars for HTML, CSS, and JavaScript as part of a
project. ?Just in case they're useful to anybody else out there, I've
released them under the Apache license:

http://github.com/brianpane/jitify-core (look in the src/core
subdirectory for the *.rl files).

Each is based on the corresponding language's spec, but modified to
reduce nondeterminism and to try to be more forgiving of real-world
content. ?The grammars are by no means perfect, but they might serve
as a decent starting point for other folks who need to parse those
languages.

-Brian

Loading...