mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-01-31 14:04:44 +01:00
Author:admin
Date:2008-09-19T07:54:43.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@25 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
[[Property:title|Eiffel polynomial parser]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|63f0e737-4ad7-c574-3bbc-05e005815785]]
|
||||
In the directory '''$ISE_EIFFEL/examples/parse''' you will find a system that implements a processor for a grammar describing a simple language for expressin polynomials. A typical document in this language is the line
|
||||
<code>x;y: x * (y + 8 - (2 * x))</code>
|
||||
The beginning of the line, separated from the rest by a colon, is the list of variables used in the polynomial, separated by semicolons. The rest of the line is the expression defining the polynomial. The grammar can be described with the following grammar:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[[Property:title|Parse Sample]]
|
||||
[[Property:weight|2]]
|
||||
[[Property:uuid|ad48d4f5-a113-65f7-15fc-8c8fd3f5c284]]
|
||||
* [[Eiffel polynomial parser|Eiffel polynomial parser]]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user