ceylon run --rep=https://lucaswerkmeister.github.io/ceylon.formatter/modules ceylon.formatter/1.1.0-BETA source
ceylon run --rep=https://lucaswerkmeister.github.io/ceylon.formatter/modules ceylon.formatter/1.1.0-BETA source --to source-formatted
I believe you could use it to write any AST node, although the UI doesn't encourage this at the moment. To preserve comments, you'd also need a TokenStream that yields exactly the tokens that make up the node.
It doesn't compile to JS because it depends on the Ceylon compiler :-/
if the compiler was rewritten in Ceylon, that would be great! :D
It'll be the parser he needs, won't it?
Do you really need the compiler, or just the typechecker?
--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users...@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at http://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/b93fe6a4-572f-4070-a2a7-d3340643ab90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
shared import com.redhat.ceylon.typechecker "1.1.0"; shared import com.redhat.ceylon.common "1.1.0";
You'll either get the feeling "Wow, that was easy!" and move on (that happened to me) or "Eeek, what a pain!" and let someone else to the work.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/c1bfbada-cfc6-4595-814a-1af1769798d4%40googlegroups.com.
... am I doing something wrong?
And do you plan to integrate it into IDE ?
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/b7d596bc-be1a-4ee5-a091-99c111c55407%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/f5211294-c782-4e04-9827-3f50bf562b04%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/93a74c17-bf57-4406-8d4f-42ccbd6de79e%40googlegroups.com.
variable value map = TreeMap(compare,
elements map (Element e) => e->present);
I can’t find it in the spec. I don’t see it in the grammar. I’m seriously considering I might be hallucinating…
… and if I’m not, please tell me this is unsupported and I can just ignore it. Please :-/