Thursday, July 5, 2012

Parsing Java signatures with Scala's parser combinators

I need to parse some Java signatures for a new version of the AndroidProguardScala plugin. I had read about #Scala parser combinators, but never used them. Here's what I came up with for parsing Java signatures (the things like Ljava/util/List<[Ljava/util/List<Ljava/lang/String;>;>; that you see when you're using asm and other tools).




And here's the test file:

No comments: