parser-combinators
How is scala.util.parsing.ast.Binders supposed to be used?
I am currently implementing a small compiler in Scala and while I was doing the component for context analysis I discovered the trait Binders in package scala.util.parsing.ast (I am using Scala 2.9 RC[详细]
2023-02-28 04:27 分类:问答Scala Parser, why doesn't "pat <~ pat ~> pat" work?
Trying out a simple parser combinator, I\'m running into compilation errors. I would like to parse -- \"Smith, Joe\" into its Name object like Name(Joe, Smith). Simple enough, I guess.[详细]
2023-02-28 01:59 分类:问答Is there a parser combinator as awesome as the Scala one for Java?
I read the tutorial on parser co开发者_如何转开发mbinators for Scala, and I was wondering if there\'s something as \"magical\" for Java. The best thing I could find was JParsec.JParsec seems to do the[详细]
2023-02-16 04:56 分类:问答Scala Parsers: Availability, Differences and Combining?
My question is about the Scala Parsers: Which ones are available (in the Standard library and outside),[详细]
2023-01-29 23:55 分类:问答Is this a reasonable foundation for a parser combinator library?
I\'ve been working with FParsec lately and I found that the lack of generic parsers is a major stopping point for me. My goal for this little library is simplicity as well as support for generic input[详细]
2023-01-24 06:25 分类:问答How do I write a regex that matches all characters that are not a '$' followed by 'i' or '{'?
Meaning, I want to match: $10 or $ but not this: ${name} or: $image{http://wrfgadgadga.com/gadgad.png} I also want to match everything else... normal characters, symbols, numbers, etc.[详细]
2023-01-21 11:57 分类:问答Appending a label to immutable case classes in Scala
Im trying to create a parser for a small language with commands including labels and goto: ... lazy val cmds= opt(\"{\")~>rep(cmd<~opt(\";\"))<~opt(\"}\") ^^ {...}[详细]
2023-01-11 06:53 分类:问答Expected type of Parser in method "|"
I have the following code being compiled against scala 2.8.0: import scala.util.parsing.combinator.{syntacti开发者_C百科cal,PackratParsers}[详细]
2023-01-10 13:18 分类:问答How to further improve error messages in Scala parser-combinator based parsers?
I\'ve coded a parser based on Scala parser combinators: class SxmlParser extends RegexParsers with ImplicitConversions with PackratParsers {[详细]
2022-12-31 08:33 分类:问答Scala parser combinators: how to parse "if(x)" if x can contain a ")"
I\'m trying to get this to work: def emptyCond: Parser[Cond] = (\"if\" ~ \"(\") ~> regularStr <~ \")\" ^^ { case s => Cond(\"\",Nil,Nil) }[详细]
2022-12-31 03:37 分类:问答