Re: Parse an EBNF grammar with instaparse?

2021-07-17 Thread D. Ben Knoble
I should clarify: it parses a variant of EBNF. The specific syntax is explained at https://benknoble.github.io/loner/ and https://benknoble.github.io/loner/demo.html#syntax On Saturday, July 17, 2021 at 8:50:48 PM UTC-4 D. Ben Knoble wrote: > I haven't touched Clojure in a year or two, and I'm

Re: Parse an EBNF grammar with instaparse?

2021-07-17 Thread D. Ben Knoble
I haven't touched Clojure in a year or two, and I'm not familiar with instaparse. I can say, from a terminology stand-point, that a grammar (such as one in EBNF) can produce a parser, which then produces parse-trees of input strings. So, perhaps you mean that you want parse-trees of strings in

Re: ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Jack Park
Tanya, That did help, swapping ie4clj.api.Inferrable for its import. That, of course, got me into the next coding bug, about which I shall ask next (I am attempting to use doseq to walk a list and AND its Inferrable members) Meanwhile, I am truly surprised that you said I don't think it is the

Re: ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Tanya Moldovan
Hi, I don't think it is the right way to use interfaces in clojure. Take a look at this and this . You c

Re: [ANN] Discontinuing 4clojure.com

2021-07-17 Thread Peter Strömberg
Thanks, thanks, thanks, for creating and caring about 4clojure for this long, Alan! I can't tell how instrumental it has been on my Clojure journey. Not only for learning the language, also for keeping it fun there in the beginning when I doubted I could learn enough of it to get productive. I'm no

Re: [ANN] Discontinuing 4clojure.com

2021-07-17 Thread Peter Strömberg
I don't know which groups are competing, but I can vouch for the 4ever constellation. Not only are they highly trustworthy, but also known for getting shit done, and as stayers. On Wed, 14 Jul 2021 at 08:50, Alan Malloy wrote: > There have been a number of requests on this thread for me to trans

Reporting Potential Security Vulnerabilities in the Clojure Codebase

2021-07-17 Thread William Blair
Does the Clojure project have a protocol in place for reporting potential security vulnerabilities found in the runtime? I'd be happy to share a proof of concept I have so that the developers can assess whether or not what I've found is a true vulnerability. -- You received this message beca

Parse an EBNF grammar with instaparse?

2021-07-17 Thread Jakob Schöttl
Hi all, I was hoping that I can call (instaparse.core/parser "my ::= 'ebnf' | 'grammar' ") to get a parse tree of the EBNF. I'd like to convert the EBNF to a tree-sitter grammar.js. But when I evaluate the above expression, I only see a the original EBNF input, reformatted, and without comme

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-17 Thread Tanya Moldovan
Hi, conj adds at the end of a vector, but at the beginning of a list. It is how it is implemented. I think this and this

ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Jack Park
I created a gist https://gist.github.com/KnowledgeGarden/39742ae9ae641f0d8facb31b288ece4c which explains a ClassNotFoundException when I am importing and reifying a particular interface in another clj file. It's really baffling because, in the load order, core calls a test in a test file - gett

lochdown - will be the new operating system

2021-07-17 Thread Sergei Udris
couldn't rename Trash dir on Ubuntu - it's even part of xdg spec, so new OS is needed repo is https://github.com/cljctools/lochdown -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note th

clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-17 Thread SideStep
I have a representation of a matrix in grid.clj file: (-> (grid 10 10) (toggle 2 3 4 5) (off 2 3 4 5) (on 2 3 4 5)) It's a list of functionts, first one initializes a grid, others modify it. Clojures' 'code is data' supposed to mak