I get this exception:

patsopt -o DATS/process_dats.c.tmp -d DATS/process.dats
/home/michael/share/design/code/uPuckFX3/SATS/frames.sats: 28(line=3, offs=1
) -- 32(line=3, offs=5): error(parsing): the token is discarded.
exit(ATS): uncaught exception: 
_2home_2hwxi_2Research_2ATS_2dPostiats_2src_2pats_error_2esats__FatalErrorExn
(1025)
makefile:79: recipe for target 'DATS/process_dats.c' failed
make: *** [DATS/process_dats.c] Error 1

with code:

%{#
// The max size of an In Frame is 1024 bytes.
extern uint8_t packetInData[1024];
extern const uint8_t *packetIn;
extern const uint16_t *packetInCount;
extern const uint8_t *packetInHeader;
extern const uint8_t *packetInContents;
extern const uint8_t *smbusInControl;
extern const uint8_t *smbusInProtocol;
extern const uint8_t *smbusInAddress;
extern const uint8_t *smbusInCommand;
extern const uint8_t *smbusInData0;
extern const uint8_t *smbusInData1;

// The max size of an Out Frame is 1024 bytes;
extern uint8_t packetOutData[1024];
extern const uint8_t *packetOut;
extern const uint16_t *packetOutCount;
extern const uint8_t *packetOutHeader;
extern const uint8_t *packetOutContents;
extern const uint8_t *smbusOutProtocol;
extern const uint8_t *smbusOutBlock;

%}

Perhaps something in the closing bracket needs change?

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ats-lang-users+unsubscr...@googlegroups.com.
To post to this group, send email to ats-lang-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/03905339-4d03-4b19-8b79-560dffc0562b%40googlegroups.com.

Reply via email to