ATS can't use keyword as record member?

23 views
Skip to first unread message

Kiwamu Okabe

unread,
Sep 16, 2016, 6:43:10 AM9/16/16
to ats-lang-users
Hi all,

ATS can't use keyword as record member?

https://gist.github.com/master-q/f9ee268facda11b9cac88483c4779432

I find ATS can't use following name in $extype_struct:

* "prefix"
* "begin"
* "end"
* "in"

I believe they are keyword in ATS. However, disable to use them is so
limiting for real programming...

Best regards,
--
Kiwamu Okabe at METASEPI DESIGN

gmhwxi

unread,
Sep 16, 2016, 11:24:09 PM9/16/16
to ats-lang-users, kiw...@debian.or.jp
This could be fixed.

For the moment, you may want to use _keyword_ for keyword.

Then add

#define _keyword_ keyword

Kiwamu Okabe

unread,
Sep 16, 2016, 11:26:45 PM9/16/16
to ats-lang-users
On Sat, Sep 17, 2016 at 12:24 PM, gmhwxi <gmh...@gmail.com> wrote:
> This could be fixed.

Thanks a lot.

> For the moment, you may want to use _keyword_ for keyword.
>
> Then add
>
> #define _keyword_ keyword

O.K.
I should choose waiting you or implementing such escape.
Reply all
Reply to author
Forward
0 new messages