|From:||Diego Fernando Rodríguez Varón|
|Subject:||Re: Prolog Syntax.|
|Date:||Wed, 8 May 2002 09:21:26 -0500|
The syntax I'm talking about is the language syntax grammar. I'm not sure how to define it but to give an idea here are some keywords: BNF, context free grammar, tokens, keywords, identifiers, constants, literals, operators, expressions and so on. The reason I would like to find a formal description is not to learn prolog... I have 2 books and some web tutorials, but to know how to WRITE in GNU-Prolog.
For example I used a variable named like "something+otherthing". The program compiled but did funny things. If you write "father (bob, joe)". It's a syntax error because of the space before the first parentheses and nowhere in the manual says that you can't put a space there. The same for comments... they are not described in the manual. Other example: all directives are documented in the manual, but not that they must start with ":-". See what I mean?
When I say this language rocks I mean that it is great. It's a completely new way to program. As a good C programmer, I thought that all languages should be the same... a mechanism to tell a computer HOW TO DO something, not WHAT TO DO like prolog.
Also this compiler rocks!
I appreciate a lot the efforts of Daniel Diaz to share this great product with the community. Thank you.
----- Original Message -----
|[Prev in Thread]||Current Thread||[Next in Thread]|