--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/aa687715-10b2-4e28-b6d8-d4c3013f0f16%40googlegroups.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/c4d11ba3-56ba-46e4-a3ed-bb880f2cd390%40googlegroups.com.
Hello,This is a very ugly ats mode for sublimetext, but at least it is better than nothing. […]
I tried it. It looks good.
I will recommend it to the students taking my programming language class
next week.
Do you happen to have an on-line place to put all these files? E.g., Github?
If you do, then I can mention the link on the following page:
Could you add an item about this in the following file
and then issue a git-pull request:
Cheers!
--
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/65fc7871-aa09-49c7-a732-372b6a61628c%40googlegroups.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/5ae00ba6-13a8-437e-b0bd-a25d57aabb60%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/b38ef83d-f500-4fea-985b-f07360a49a3e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/3a0e45e5-da4c-4a71-999b-e4a016e1ca1c%40googlegroups.com.
I added a tiny utility to reformat messages from ATS. This may be useful to messages pans of editors which has the capability to run external tools (I use it with MEdit, alias MooEdit) . My apologizes for not releasing as ATS, which may be done a future day (the Python source does not make use of regexp, on purpose).Instructions for use and what re‑formating is applied, is explained in the file it‑self:
For now, I think focusing on showtype messages would be a good idea.
Could you make a wrapper, say, patscc-pp for patscc? I use pp to refers to
pretty-printing.
If one runs patscc-pp, then one should be able to see prettified warning/error messages.
In this way, everyone using ATS could benefit.
I'm interested in comments on additional re‑formating I would like to add. I would like to specifically re‑format message from `showtype`, displaying things like `S2Ecst(false_bool)` as `false`, empty predicate `; ;` as `true`, application like in `S2Eapp(S2Ecst(set); S2Evar(s))` as something like `(cst-set var-s)` or may be `cst-set(var-s)`, writing `∃` instead of `S2Eexi` and `∀` instead of `S2Euni`, added indentation for nested expressions, things like that. Note there are already some dirty and simple re-formating apply, I'm talking about further re-formating.
test.dats:113:5:
error(3):
unsolved constraint:
Prop(main; @(==; 1; 0))
typechecking has failed:
there are some unsolved constraints:
please inspect the above reported error message(s) for information.
exit(ATS):
uncaught exception:
[…]_error_2esats__FatalErrorExn(1025)
test.dats:86:9:
@(cst-set; var-s):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:90:9:
∃(s; ⊤; @(cst-set; var-s)):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:91:9:
@(cst-set; var-s):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:96:9:
∀(i(4335); ⊤; cst-set):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:101:9:
∀(i; ⊤; ∃(s; ⊤; @(cst-set; var-s))):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:106:9:
∀(i; ⊤; @(cst-set; var-s)):
S2RTbas(S2RTBASimp(1; t@ype))
test.dats:111:9:
∀(i; @(cst-~; @(cst-has; var-s, var-i)); @(cst-set; var-s)):
S2RTbas(S2RTBASimp(1; t@ype))/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 3387(line=113, offs=5) -- 3395(line=113, offs=13): error(3): unsolved constraint: C3NSTRprop(main; S2Eeqeq(S2Eintinf(1); S2Eintinf(0)))
typechecking has failed: there are some unsolved constraints: please inspect the above reported error message(s) for information.
exit(ATS): uncaught exception: _2home_2hwxi_2research_2Postiats_2git_2src_2pats_error_2esats__FatalErrorExn(1025)
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 2820(line=86, offs=9) -- 2830(line=86, offs=19)): S2Eapp(S2Ecst(set); S2Evar(s$1078(4464))): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 2893(line=90, offs=9) -- 2911(line=90, offs=27)): S2Eexi(s$1081(4467); ; S2Eapp(S2Ecst(set); S2Evar(s$1081(4467)))): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 2920(line=91, offs=9) -- 2930(line=91, offs=19)): S2Eapp(S2Ecst(set); S2Evar(s$1079$1080(4466))): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 3021(line=96, offs=9) -- 3031(line=96, offs=19)): S2Euni(i(4335); ; S2Ecst(set)): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 3133(line=101, offs=9) -- 3143(line=101, offs=19)): S2Euni(i$1084(4470); ; S2Eexi(s$1085(4471); ; S2Eapp(S2Ecst(set); S2Evar(s$1085(4471))))): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 3245(line=106, offs=9) -- 3255(line=106, offs=19)): S2Euni(i$1087$1089(4475); ; S2Eapp(S2Ecst(set); S2Evar(s$1086$1088(4474)))): S2RTbas(S2RTBASimp(1; t@ype))
**SHOWTYPE[UP]**(/home/yannick/Bureau/RenderMan/html/calc-ats/test.dats: 3370(line=111, offs=9) -- 3380(line=111, offs=19)): S2Euni(i$1091$1093(4479); S2Eapp(S2Ecst(~); S2Eapp(S2Ecst(has); S2Evar(s$1090$1092(4478)), S2Evar(i$1091$1093(4479)))); S2Eapp(S2Ecst(set); S2Evar(s$1090$1092(4478)))): S2RTbas(S2RTBASimp(1; t@ype))I added a tiny utility to reformat messages from ATS. This may be useful to messages pans of editors which has the capability to run external tools (I use it with MEdit, alias MooEdit) . My apologizes for not releasing as ATS, which may be done a future day (the Python source does not make use of regexp, on purpose).Instructions for use and what re‑formating is applied, is explained in the file it‑self: