wlcomp pragma not recognized
|
|
Bugzilla Link |
942 |
Created on |
Mar 29, 2012 17:11 |
Resolution |
FIXED |
Resolved on |
Jun 19, 2012 10:36 |
Version |
svn |
OS |
All |
Architecture |
PC |
Attachments |
wlcomp.sac |
Extended Description
Created an attachment (id=872)
SaC function with a with-loop and a wlcomp pragma
The pragma wlcomp is not recognized by the parser. The latest version of the SaC syntax that recently circulated the mailing list still includes it though.
I'm attaching a simple SaC function with a with-loop. Here is the output I get when trying to compile it:
$ sac2c wlcomp.sac
** 1: Loading SAC program ...
**** Locating source code ...
Reading from file "./wlcomp.sac" ...
**** Running C preprocessor ...
**** Parsing input file ...
./wlcomp.sac error:3:1: token `(' expected, `#' token found
./wlcomp.sac error:5:10: type expected, `:' found
./wlcomp.sac error:6:3: type expected, `return' found
./wlcomp.sac error:7:1: type expected, `}' found
./wlcomp.sac error:8:1: function body or semicolon expected
note: finished parsing.
note: 5 error(s) found.
ABORT: Failed to construct a syntax tree for `wlcomp.sac'
*** Compilation failed ***
*** Exit code 1 (Loading SAC program)
*** 1 Error(s), 0 Warning(s)