- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
typical...
Fri, 2009-02-27, 04:03
Scalads and lasses,
i'm attempting to use http://code.google.com/p/javaparser from within Scala. There's just one teensy little problem. The parser has a package called type and a bunch of code using the 'type' as an identifier. Scala is none too happy about this. Is there a quick and dirty way around this -- short of renaming/refactoring a major section of this 3rd party code?
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
i'm attempting to use http://code.google.com/p/javaparser from within Scala. There's just one teensy little problem. The parser has a package called type and a bunch of code using the 'type' as an identifier. Scala is none too happy about this. Is there a quick and dirty way around this -- short of renaming/refactoring a major section of this 3rd party code?
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
Fri, 2009-02-27, 20:07
#2
Re: typical...
Bill,
Cheers! That did the trick. It's surprisingly easy to do source-to-source transformation on Java -- even as verbose as it is.
Best wishes,
--greg
On Thu, Feb 26, 2009 at 7:07 PM, Bill Venners <bill@artima.com> wrote:
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
Cheers! That did the trick. It's surprisingly easy to do source-to-source transformation on Java -- even as verbose as it is.
Best wishes,
--greg
On Thu, Feb 26, 2009 at 7:07 PM, Bill Venners <bill@artima.com> wrote:
Hi Greg,
Putting `type` in backticks should do the trick, which makes it a
"literal identifier." And if you don't want to type that over and over
you could put a thin API in front that takes care of the backticks,
and you call the Scala-friendly stuff in front.
Bill
On Thu, Feb 26, 2009 at 7:02 PM, Meredith Gregory
<lgreg.meredith@gmail.com> wrote:
> Scalads and lasses,
> i'm attempting to use http://code.google.com/p/javaparser from within Scala.
> There's just one teensy little problem. The parser has a package called type
> and a bunch of code using the 'type' as an identifier. Scala is none too
> happy about this. Is there a quick and dirty way around this -- short of
> renaming/refactoring a major section of this 3rd party code?
> Best wishes,
> --greg
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
Hi Greg,
Putting `type` in backticks should do the trick, which makes it a
"literal identifier." And if you don't want to type that over and over
you could put a thin API in front that takes care of the backticks,
and you call the Scala-friendly stuff in front.
Bill
On Thu, Feb 26, 2009 at 7:02 PM, Meredith Gregory
wrote:
> Scalads and lasses,
> i'm attempting to use http://code.google.com/p/javaparser from within Scala.
> There's just one teensy little problem. The parser has a package called type
> and a bunch of code using the 'type' as an identifier. Scala is none too
> happy about this. Is there a quick and dirty way around this -- short of
> renaming/refactoring a major section of this 3rd party code?
> Best wishes,
> --greg
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>