Hum, OK, it uses block Exprs... That may then work for punctuation and
whitespace too.
On Fri, Feb 12, 2016 at 4:20 PM Erik Schnetter wrote:
> Line numbers are already handled in this way:
>
> julia> parse("f(x)=x") |> dump
> Expr
> head: Symbol =
> args: Array(Any,(2,))
> 1: Expr
>
Line numbers are already handled in this way:
julia> parse("f(x)=x") |> dump
Expr
head: Symbol =
args: Array(Any,(2,))
1: Expr
head: Symbol call
args: Array(Any,(2,))
1: Symbol f
2: Symbol x
typ: Any
2: Expr
head: Symbol block
args: Array(A
Yes, but then where such Exprs will placed? Not inside the args array of
other Exprs...
I guess that if it is necessary to revert back to source code from an AST,
then a modification to Expr has to be made...
On Fri, Feb 12, 2016 at 1:47 PM Erik Schnetter wrote:
> On Fri, Feb 12, 2016 at 5:17 AM
On Fri, Feb 12, 2016 at 5:17 AM, Cristóvão Duarte Sousa
wrote:
> I don't know if it has been said here before, sorry if I'm repeating, but:
> a way to represent the "concrete" syntax tree, convert it to AST and then
> back would be of great use here, see
> https://github.com/JuliaLang/JuliaParser.
I don't know if it has been said here before, sorry if I'm repeating, but:
a way to represent the "concrete" syntax tree, convert it to AST and then
back would be of great use here,
see https://github.com/JuliaLang/JuliaParser.jl/issues/22 .
I actually thought a lot about that, and imagine that
Would maybe be better to start a new thread asking about this rather than
adding to an old one.
But anyway, no there is not currently anyone working on a standalone Julia
formatter as far as I know. The IDE's under development as Eclipse and Atom
plugins are working on their own formatters, but
Was there any progress on this lately? I've noticed that atom-beautify
plugin doesn't have Julia
support(https://github.com/Glavin001/atom-beautify/issues/799), but there
doesn't seem to be a tool that it can hook into.
On Saturday, January 11, 2014 at 9:22:14 AM UTC-8, Stefan Karpinski wrote:
Kind of. I don't think that expression printing is even remotely good
enough for this yet, but that's the basic idea that makes the most sense to
me. No point in using separate parse or print code when there's already
functions that do this stuff.
On Sat, Jan 11, 2014 at 12:06 PM, Job van der Zwa
So you are saying that the most of the tooling required for an
auto-formatting tool is already there?
On Thursday, 9 January 2014 14:42:40 UTC+1, Stefan Karpinski wrote:
>
> I would be into having an auto-formatting tool. The way to do this would
> be to work on the printing of ASTs until the wa