Hi,
I'm trying to write a small parser using DCG, but when I use the code
below
-- parser.clj ---
(ns compiler.parser
(:refer-clojure :exclude [==])
(:use [clojure.core.logic]
[clojure.core.logic.dcg] )
)
(def-->e token [tg x]
([_ ?tk] [?tk]
(
Armando, Nate and Panduranga
Many thanks for the answers.
Regards,
Alex
2012/8/28 Nate Young
> On Thu, Aug 23, 2012 at 11:22 AM, Alexsandro Soares
> wrote:
> > Can you provide the code for this?
> Certainly.
>
> The parser's current source position is stored in
Hi Nate,
Can you provide the code for this?
Thanks,
Alex
2012/8/23 Nate Young
> On Thu, Aug 23, 2012 at 9:24 AM, Alexsandro Soares
> wrote:
> > Ok. Thanks for the answer.
> >
> > Is there any way to get the line and column?
> The Parsatron doesn't have any b
Ok. Thanks for the answer.
Is there any way to get the line and column?
For example, in this parser
(defparser ident []
(>> (letter) (many (either (letter) (digit)
I want the token and the initial line and column. How can I change this
code?
Cheers,
Alex
--
You received this message b
Hi all,
I'm using the Parsatron library to build parser combinators. I have the
following definition:
(defparser anbn []
(let->> [as (many (char \a))
bs (times (count as) (char \b))]
(always (concat as bs
(defparser xdny []
(let->> [ds (between (char \x) (char \y)
Hi Simone,
You can look at the code made by Cory Giles at
https://github.com/gilesc/factor-graph
Good luck.
Alexsandro
2012/7/14 Simone Mosciatti
> Hi guys,
> I'm trying to develop a Bayesian Network just "for fun" XD
>
> My first problem is to understand how represent the graph
Hi,
I'm trying to build a compiler using Clojure. Is there any tools
like flex and bison generating Clojure code?
I'm interested in a lexer/parser in pure Clojure because I think
in use the same code with Javascript (via ClojureScript) and Java (via
Clojure).
I already know isolated too