parser-combinators
Turning a list/sequence of combinator parsers into a single one
I have a list of values from which I开发者_如何学JAVA can construct a list of parsers, that depend on these values by mapping (see example). Then what I want to do is turn the list of parsers into a s[详细]
2023-04-11 12:29 分类:问答FParsec default error messages
Let\'s say I am defining the following parser: let identifier = many1Satisfy isLetter //match 开发者_如何学Goan identifier[详细]
2023-03-31 16:43 分类:问答Understanding the tilde in Scala's parser combinators
I\'m fairly new to Scala and while reading about parser combinators(The Magic Behind Parser Combinators, Domain-Specific Languages in Scala) I came across method definitions like this:[详细]
2023-03-23 06:17 分类:问答Simple stringLiteral matching fails when using JavaTokenParsers in Scala
I\'ve just started working on an external DSL, however I\'ve run into an issue. I\'ve written a very simple test, I use Scala 2.9.0-1 and scalatest 1.6.1:[详细]
2023-03-23 02:47 分类:问答List equality using parser combinators
I\'ve grabbed some Scala CSV parsing code from here: Use Scala parser combinator to parse CSV files And then I tried to write a basic test for it:[详细]
2023-03-19 20:39 分类:问答DSL to implement business rules for REST service routing and processing
I am hoping that Combinator parsers, (http://debasishg.blogspot.com/2008/04/external-dsls-made-easy-with-scala.html), will work for a design to process the routing rules for a REST service that is imp[详细]
2023-03-13 23:52 分类:问答Scala parser combinators, parsers fails due to precedence
I am trying to write an 开发者_Python百科interpreter for the programming language Icon. One of the steps in this process is writing a parser for Icon, which I\'ve done in the following way:[详细]
2023-03-13 18:36 分类:问答Scala Parser - Message Length
I\'m toying with Scala\'s Parser library.I am trying to write a parser for a format where a length is specified followed by a message of that len开发者_StackOverflow中文版gth.For example:[详细]
2023-03-12 19:03 分类:问答Ignoring C-style comments in a Scala combinator parser
What is the most simple way to make my parser respect (ignore) C-style comments. I\'m interested in both comment types, though a solution for only one type is also welc开发者_运维问答ome.[详细]
2023-03-05 02:17 分类:问答Scala parser combinators, failure on end of line
I am trying to build an interpreter for the Icon programming language, in Scala. Right now I am working on setting up a parser for it.[详细]
2023-03-01 10:09 分类:问答