caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Idea about parser
@ 2011-12-01  8:23 Kakadu
  0 siblings, 0 replies; only message in thread
From: Kakadu @ 2011-12-01  8:23 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Hello!

How difficult is to create a tool described below?

This Tool will look at AST (maybe specific, with some restrictions; maybe a
syntax extendion of ML-like language)  of parser (which uses combinators)
and will generate parsing code according next rules:
1) this parser-function parses a grammar with some  ambiguities --- GLR
parser is a right choice
2) this parser-function
......................??????................................... ---
recursive descent is better.
3) this parser-function
.......................????...................................... --- we
should use LALR parser.

Now I have code examples which generate parsers of different types from
some DSL. AFAIU the main problems are:
1) how to build grammar from parser-combinators code?
2) how to analyze grammar?

Best wishes,
Kakadu

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-01  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01  8:23 [Caml-list] Idea about parser Kakadu

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 NNTP newsgroup(s).