I added "Base." to strpack.jl,
diff --git a/extras/strpack.jl b/extras/strpack.jl
index c9d167b..a03c6ee 100644
--- a/extras/strpack.jl
+++ b/extras/strpack.jl
@@ -156,7 +156,7 @@ function struct_parse(s::String)
)
"x, s[i:end])
if isa(m, Nothing)
- error("Failed to compile struct; syntax error at ...$(s[i])...")
+ error("Failed to compile struct; syntax error at index $i...$(s[i])...within '$(s[i:end])'")
end
name, oneD, nD, typ, custtyp = m.captures
dims = if isa(oneD, Nothing) && isa(nD, Nothing)
@@ -325,7 +325,7 @@ function interp_struct_parse(str::String)
end
macro s_str(str)
- interp_struct_parse(eval(_jl_interp_parse(str)))
+ interp_struct_parse(eval(Base._jl_interp_parse(str)))
end
# Julian aliases for the "object-style" calls to pack/unpack/struct
However, now the regular expression parsing is failing now.
[dan@new-host-2 julia]$ ./julia examples/png.jl /Users/dan/QtSDK/Examples/4.7/network/torrent/icons/peertopeer.png
Failed to compile struct; syntax error at index 1...B...within 'BcccBBBB'
in struct_parse at /Users/dan/src/julia/extras/strpack.jl:160
in interp_struct_parse at /Users/dan/src/julia/extras/strpack.jl:319
in @s_str at /Users/dan/src/julia/extras/strpack.jl:329
in load at util.jl:230
in load at util.jl:242
in process_options at client.jl:175
in _start at client.jl:227
in load at util.jl:230
in load at util.jl:242
in process_options at client.jl:175
in _start at client.jl:227
at /Users/dan/src/julia/examples/png.jl:7
in load at util.jl:253
in process_options at client.jl:175
in _start at client.jl:227
I tried to simplify the regular expression, but I couldn't get it to mach anything. Is that related to Jeff's warning?
> --
>
>
>