[eclipse-clp-users] Question about parsing

From: Huy Pham <hpham_at_...156...>
Date: Mon, 5 Jan 2009 10:20:34 -0500

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,

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

This archive was generated by hypermail 2.3.0 : Tue Aug 20 2019 - 00:14:49 CEST