Universität Paderborn - Home Universität Paderborn
Die Universität der Informationsgesellschaft

Generating Software from Specifications WS 2013/14 - File parsing1.fw

@=~
~p maximum_input_line_length = infinity

This file contains the specification of a language
for sequences of statements.
Try to generate a processor for it. 

If the parser generation indicates problems, analyse their
reasons and eliminate them. 

The following file contains correct input for the processor:
Give an example for correct input:
~O~<Expression.ok~>~{

~}

The following file specifies the concrete syntax:
~O~<Expression.con~>~{
Program:	Statements.
Statements:	Statements Statement / Statement.
Statement:	'while' Expression 'do' Statements /
		Ident '=' Expression ';'.
Expression:	Ident.
~}

The following file specifies the non-literal tokens:
~O~<Expression.gla~>~{
Ident: C_IDENTIFIER
~}

Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 06.11.2013