Informatiker Board (http://www.informatikerboard.de/board/index.php)
- Themengebiete (http://www.informatikerboard.de/board/board.php?boardid=1)
--- Theoretische Informatik (http://www.informatikerboard.de/board/board.php?boardid=5)
---- Automatentheorie (http://www.informatikerboard.de/board/board.php?boardid=13)
----- Parser-Programmierung FEHLER (http://www.informatikerboard.de/board/thread.php?threadid=2313)


Geschrieben von su4040 am 29.05.2015 um 09:06:

  Parser-Programmierung FEHLER

Meine Frage:
Hallo, ich schreibe gerade Scanner und Parser. Scanner läuft einwandfrei, aber Parser gibt Fehler an. Leider weiß ich nicht, was ich hier falsch mache.

Hier das Fehler:
parser.y:32.17-29: error: syntax error, unexpected identifier, expecting <tag>
%type programmstart


würde mich freuen, wenn ihr mir helfen würdet

Danke schonmal



Meine Ideen:
Hier ist ein Teil von PARSER, den ich geschrieben habe:

%type programmstart
%type typdef
%type typ
%start programm


program : ARRAY
|programmstart
|program exit_command {exit(EXIT_SUCCESS);}
;

programmstart :typdef programmstart
|proc programmstart
;


Forensoftware: Burning Board, entwickelt von WoltLab GmbH