k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: "Guth, Dwight" <dguth2 AT illinois.edu>
- To: "Cranmer, Joshua Thomas" <cranmer2 AT illinois.edu>, Radu Mereuta <headness13 AT gmail.com>
- Cc: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
- Subject: Re: [K-user] Using an external parser
- Date: Mon, 10 Dec 2012 22:32:56 +0000
- Accept-language: en-US
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
This sounds very similar to my goal in python to allow a string to be passed to eval() and parsed using an external parser. Thus, it is definitely something we will eventually support.
However, right now external parsing can only be done before the program begins to execute, which is probably not good enough for you. Sorry.
From: k-user-bounces AT cs.uiuc.edu [k-user-bounces AT cs.uiuc.edu] on behalf of Joshua Cranmer [cranmer2 AT illinois.edu]
Sent: Monday, December 10, 2012 3:31 PM To: Radu Mereuta Cc: k-user AT cs.uiuc.edu Subject: Re: [K-user] Using an external parser On 12/10/2012 3:25 PM, Radu Mereuta wrote:
I'm trying to implement the regular expressions in _javascript_. To do this, I need to be able to take the "a*b" from new RegExp("a*b") and turn that into an internal AST representation of the regular _expression_. I have an external parser which can produce an AST of the regular _expression_, but I don't know how to get K to call this external parser and get an internal AST represntation back. -- Joshua Cranmer Source code archæologist |
- [K-user] Using an external parser, Joshua Cranmer, 12/10/2012
- Re: [K-user] Using an external parser, Radu Mereuta, 12/10/2012
- Re: [K-user] Using an external parser, Joshua Cranmer, 12/10/2012
- Re: [K-user] Using an external parser, Radu Mereuta, 12/10/2012
- Re: [K-user] Using an external parser, Joshua Cranmer, 12/10/2012
- Re: [K-user] Using an external parser, Guth, Dwight, 12/10/2012
- Re: [K-user] Using an external parser, Radu Mereuta, 12/10/2012
- Re: [K-user] Using an external parser, Joshua Cranmer, 12/10/2012
- Re: [K-user] Using an external parser, Radu Mereuta, 12/10/2012
Archive powered by MHonArc 2.6.16.