[eclipse-clp-users] Question about parsing

From: Huy Pham <hpham_at_longan.ca>
Date: Mon, 5 Jan 2009 10:20:34 -0500
Hello,

I am writing a Prolog parser in ECLiPSe Prolog to parse a mini language.

The difficulty I am having is that because Prolog expects term-like
expressions, my parser can not parse
non-term-like expressions. For example, the syntax for my language's IF
statement needs to be of the form:

     if(Condition, ThenClause)

Instead of

     if (Condition) then ThenClause endif

or better yet:

     if (Condition) { ThenClause }

I know it's a naive question, but thought I should still ask in case someone
have some experience and could
give me some hints.

Thank you very much,

Huy
Received on Mon Jan 05 2009 - 15:40:55 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET