|
From: | Stefano Simonucci |
Subject: | Language with comments |
Date: | Tue, 08 May 2007 18:30:08 +0200 |
Hi! I try to make a syntactic recognizer. In the language can be included also comments of the type " # <comment> ". I have made two files: prova.lex and prova.y for flex and bison. A comment consists of a list (also empty) of identifier. But I get always syntax errors. We enclose the files prova.lex, prova.y, a file for the compilation (compila) and an input file (prova.E) Thank you. Stefano -- Stefano Simonucci GNU/Linux User: #81790 http://counter.li.org
prova.lex
Description: Text document
prova.y
Description: Text document
compila
Description: application/shellscript
prova.E
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |