Thanks, forgot to grep contrib.
What is the ‘T_REC’ token used for? IOn Tue, Jan 6, 2015 at 1:44 PM, gmhwxi gmh...@gmail.com wrote:
It is used. For instance, it used in ATS2-contrib/GTK.
On Tuesday, January 6, 2015 1:39:14 PM UTC-5, Brandon Barker wrote:
Is classdec also currently unused?
On Tue, Jan 6, 2015 at 1:06 AM, Hongwei Xi gmh...@gmail.com wrote:
I think it is not used at the moment.
It was meant for some kind of binary data (possibly containing null
chars).On Tue, Jan 6, 2015 at 12:51 AM, Brandon Barker brand...@gmail.com wrote:
| {n:int}
T_CDATA of (array (char, n), size_t (n))
| T_STRING of (string)What is CDATA used for in lexing? It looks as though it could also be
used for strings.On Mon, Dec 22, 2014 at 9:09 PM, gmhwxi gmh...@gmail.com wrote:
(*
i0de
: IDENTIFIER_alp
| IDENTIFIER_sym
| EQ
| GT
| LT
| AMPERSAND
| BACKSLASH
| BANG
| TILDE
| MINUSGT
| MINUSLTGT
| GTLT
; /* i0de */
*)Please see pats_parsing_base.dats.
On Monday, December 22, 2014 9:05:00 PM UTC-5, Brandon Barker wrote:Which token is for identifiers?
On Sat, Dec 20, 2014 at 1:31 PM, Brandon Barker <brand...@gmail.com wrote:
OK, thanks, I seem to recall that there were differences in writing
down some of the literals in ATS versus C, but probably I am mistaken. Also
I can’t easily check much as I only have internet on my phone for a few
hours. Good time to translate the lexer though.
On Dec 20, 2014 1:25 PM, “gmhwxi” gmh...@gmail.com wrote:The literals (chars, integers, floats, strings) are taken from C.
On Saturday, December 20, 2014 1:15:13 PM UTC-5, Brandon Barker wrote:
I found this one, but in case my ATS is rusty/incomplete, I was
hoping to find a definitive reference for the form of all literals. Not the
names of the tokens.
On Dec 20, 2014 1:06 PM, “Hongwei Xi” gmh...@gmail.com wrote:The names of the tokens can be found at the end of the following
file:https://github.com/githwxi/ATS-Postiats/blob/master/src/pats
_lexing_token.datsOn Sat, Dec 20, 2014 at 12:45 PM, Brandon Barker < brand...@gmail.com> wrote:
Sorry! Literal tokens.
On Dec 20, 2014 12:21 PM, “Hongwei Xi” gmh...@gmail.com wrote:What do mean by ‘literal types’?
On Sat, Dec 20, 2014 at 12:10 PM, Brandon Barker < brand...@gmail.com> wrote:
Thanks, I think this helped, but I am still not sure on some
points (this can be worried about later, as you say).More importantly, which parsing source file, if any, contains
the most straightforward definitions of various literal types in ATS?On Dec 20, 2014 2:06 AM, “Hongwei Xi” gmh...@gmail.com wrote:
It is getting a bit involved.
If T_VIEWT is followed by “@type”, then these two pieces are
combined to form “viewt@ype”.
I kind of regret to form such a strange identifierHowever, you don’t really need to deal with this kind of
complexity. At least, not at this stage.
You can always write “viewt0ype” instead, which is a normal
identifier.On Sat, Dec 20, 2014 at 12:13 AM, Brandon Barker < brand...@gmail.com> wrote:
Thanks,
I’ve gotten most of the way through it. It has made me
realize that ATS is even more rich (potentially) than I know, since I saw a
number of reserved tokens for either unused or rarely used features.I have a question about the following:
| T_IDENT_alp of string
It seems this token can have several lexical matches. Maybe
I am interpreting incorrectly, but in any case, this group seems to consist
of proof-related words:
implement PERCENT = T_IDENT_alp “%”
implement QMARK = T_IDENT_alp “?”
implement REF = T_IDENT_alp “ref”
// HX: ref@ for flattened referenceBut there are other tokens too in this class
(e.g. T_VIEWAT). What distinguishes the words that make up the
T_IDENT_alp token?On Friday, December 12, 2014 1:29:42 AM UTC-5, gmhwxi wrote:
It would be nice to implement a lexer for ATS2 based on
JFlex.
It is a modest project but can be quite useful.Given an ATS2 source file, the lexer can output a file of
tokens in JSON format.
There could be many ways to use such a file. For instance,
use it for doing syntax-highlighting.
It is also possible for modify the ATS2 compiler to take
such a file as another form of input.
For such uses, it is important to attach location
information to tokens.The datatype for tokens in ATS2 is declared in the
following file:https://github.com/githwxi/ATS-Postiats/blob/master/src/
pats_lexing.satsOn Thursday, December 11, 2014 8:00:59 PM UTC-5, Brandon Barker wrote:
I’m a bit rusty on this topic, and also, I don’t know
enough about the ATS grammar even if I wasn’t. Is it worth trying to lex
ATS using such a tool: http://jflex.de/?On Fri, Nov 28, 2014 at 5:46 PM, Brandon Barker < brand...@gmail.com> wrote:
I did not realize until today that IntelliJ is not only
free, but open source. I’m liking it as well so far.On Tue, Nov 25, 2014 at 12:39 PM, Raoul Duke < rao...@gmail.com> wrote:
intellij has a ‘free’ version, too.
–
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-user…@googlegroups.
com.
To post to this group, send email to
ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/
CAJ7XQb5FgvvUkjrW3hzNLmdiQwc6QkQBA1R%3DqfdjUW7Gn2qzng%
40mail.gmail.com.–
Brandon Barker
brand...@gmail.com–
Brandon Barker
brand...@gmail.com–
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...@googlegroups.com.
To post to this group, send email to
ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/39a56165-56
74-411b-aa78-afd068704d1a%40googlegroups.com
https://groups.google.com/d/msgid/ats-lang-users/39a56165-5674-411b-aa78-afd068704d1a%40googlegroups.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-lan…@googlegroups.
com.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLqiT2
nzHt2byV8TZAA3qSpuM9%2Bx4Y5nfAQCQxkkVax88A%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLqiT2nzHt2byV8TZAA3qSpuM9%2Bx4Y5nfAQCQxkkVax88A%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-lan…@googlegroups.
com.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/CAORbNRq3Jq
U2z6OqmNBNzpsVvtNhDHcCJ0Y33oAM9c9G94w3pQ%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAORbNRq3JqU2z6OqmNBNzpsVvtNhDHcCJ0Y33oAM9c9G94w3pQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-lan…@googlegroups.
com.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLq3Du
1%3DHjkR5Jo6Qo%3DkGHhXxXMf7oZLHR8%3D0G1mx6ag-w%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLq3Du1%3DHjkR5Jo6Qo%3DkGHhXxXMf7oZLHR8%3D0G1mx6ag-w%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com
.
Visit this group at http://groups.google.com/group
/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/CAORbNRoad2
i%2B%2BDWDkJ2GSB6KwBQxBGY6tN8f7oPbBuOm_2F-uQ%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAORbNRoad2i%2B%2BDWDkJ2GSB6KwBQxBGY6tN8f7oPbBuOm_2F-uQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLqxQd
D7hO7mREcPYVG7YjPwEfCk4o_fuUU5cO94XAazbw%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLqxQdD7hO7mREcPYVG7YjPwEfCk4o_fuUU5cO94XAazbw%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/a55b5333-b9
dc-427a-96d3-53400c24df8b%40googlegroups.com
https://groups.google.com/d/msgid/ats-lang-users/a55b5333-b9dc-427a-96d3-53400c24df8b%40googlegroups.com?utm_medium=email&utm_source=footer
.–
Brandon Barker
brand...@gmail.com–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/
msgid/ats-lang-users/88739c74-d3dc-4ea5-9062-4875479d0090%
40googlegroups.com
https://groups.google.com/d/msgid/ats-lang-users/88739c74-d3dc-4ea5-9062-4875479d0090%40googlegroups.com?utm_medium=email&utm_source=footer
.–
Brandon Barker
brand...@gmail.com–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/
msgid/ats-lang-users/CAORbNRrLZ_Mm5fG6wGgkySHuUt6gijkS7DG%
3D7cOp%3DvutqxOj7A%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAORbNRrLZ_Mm5fG6wGgkySHuUt6gijkS7DG%3D7cOp%3DvutqxOj7A%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
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...@googlegroups.com.
To post to this group, send email to ats-l...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/
msgid/ats-lang-users/CAPPSPLpoZb43%2B802y0RYaRC7C8g2z1GWWZMXbT17e
9Y3WPOauQ%40mail.gmail.com
https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLpoZb43%2B802y0RYaRC7C8g2z1GWWZMXbT17e9Y3WPOauQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.–
Brandon Barker
brand...@gmail.com–
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-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/9c6fc31e-0223-4c8c-b950-cc6da2bfccf0%40googlegroups.com
https://groups.google.com/d/msgid/ats-lang-users/9c6fc31e-0223-4c8c-b950-cc6da2bfccf0%40googlegroups.com?utm_medium=email&utm_source=footer
.
Brandon Barker
brandon...@gmail.com