File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,12 @@ public class EdnReader{
2424
2525static IFn [] macros = new IFn [256 ];
2626static IFn [] dispatchMacros = new IFn [256 ];
27- static Pattern symbolPat = Pattern .compile ("[:]?([\\ D&&[^/]].*/)?([\\ D&&[^/]][^/]*)" );
27+ static Pattern symbolPat = Pattern .compile ("[:]?([\\ D&&[^/]].*/)?(/| [\\ D&&[^/]][^/]*)" );
2828static Pattern intPat =
2929 Pattern .compile (
3030 "([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?" );
3131static Pattern ratioPat = Pattern .compile ("([-+]?[0-9]+)/([0-9]+)" );
3232static Pattern floatPat = Pattern .compile ("([-+]?[0-9]+(\\ .[0-9]*)?([eE][-+]?[0-9]+)?)(M)?" );
33- static final Symbol SLASH = Symbol .intern ("/" );
3433
3534static IFn taggedReader = new TaggedReader ();
3635
@@ -278,10 +277,6 @@ else if(s.equals("false"))
278277 {
279278 return RT .F ;
280279 }
281- else if (s .equals ("/" ))
282- {
283- return SLASH ;
284- }
285280
286281 Object ret = null ;
287282
Original file line number Diff line number Diff line change @@ -67,8 +67,6 @@ public class LispReader{
6767 "([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?" );
6868static Pattern ratioPat = Pattern .compile ("([-+]?[0-9]+)/([0-9]+)" );
6969static Pattern floatPat = Pattern .compile ("([-+]?[0-9]+(\\ .[0-9]*)?([eE][-+]?[0-9]+)?)(M)?" );
70- static final Symbol SLASH = Symbol .intern ("/" );
71- static final Symbol CLOJURE_SLASH = Symbol .intern ("clojure.core" ,"/" );
7270//static Pattern accessorPat = Pattern.compile("\\.[a-zA-Z_]\\w*");
7371//static Pattern instanceMemberPat = Pattern.compile("\\.([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)");
7472//static Pattern staticMemberPat = Pattern.compile("([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)");
You can’t perform that action at this time.
0 commit comments