[racket-users] racket notebooks (Was: Language-Specific Plugins: Toolbar button functionality to call drracket:eval:expand-program)

2019-06-25 Thread Neil Van Dyke
Arie Schlesinger wrote on 6/26/19 1:55 AM: Are there racket notebooks like jupyter or swish for prolog ? There's work on an IPython/Jupyter kernel for Racket, but I'd also like to encourage someone to follow through on also adding a (separate) good notebook mode to DrRacket, as discussed in t

Re: [racket-users] Language-Specific Plugins: Toolbar button functionality to call drracket:eval:expand-program

2019-06-25 Thread Arie Schlesinger
Hi, Are there racket notebooks like jupyter or swish for prolog ? Thank you On Wed, Jun 26, 2019 at 01:02 Kshitij Sachan wrote: > I'm working on a DSL to represent 3D geometrical shapes. I'm adding a > language-specific plugin (toolbar button) that should: 1) expand the source > code to get a m

[racket-users] Racket SIGSEGV during FFI call

2019-06-25 Thread Christopher Howard
Hi, I have a project going to make Racket bindings to the libhackrf C library installed on my Debian 9 system. I have successfully made and used bindings to around a dozen procedures in the library. However, when I get to the first really important one, my call is crashing with a SIGSEGV. I have th

[racket-users] Re: Language-Specific Plugins: Toolbar button functionality to call drracket:eval:expand-program

2019-06-25 Thread Jack Firth
This sounds very similar to pict3d , particularly if you adopt the approach suggested by Phillip of using a main submodule to render things instead of a drracket plugin. Is pict3d close to what you're trying to do? Not saying you *should* use pict3d or do th

[racket-users] Trouble documenting a form with Scribble

2019-06-25 Thread Simon Haines
I'm porting the PLaneT package 'packrat' to the new package catalog and I'm having trouble documenting a syntax form. Here is the relevant snippet from the scribble documentation: @defform/subs[#:literals (! / := |@| quote) (parse id (nonterminal-id (sequence body body0 ...) ...) .

Re: [racket-users] Language-Specific Plugins: Toolbar button functionality to call drracket:eval:expand-program

2019-06-25 Thread Philip McGrath
The functionality you describe—in particular, setting up clean evaluation contexts—sounds a lot like what the "Run" button already does. Unless you have some other notion of "running" in mind for programs in your DSL, I think what you describe could be accomplished nicely with a "main" submodule, w

Re: [racket-users] Racket plugin access the path of a file

2019-06-25 Thread Matthew Butterick
In your `get-info` function for your #lang, if `ip` is the input port passed as the first argument to `get-info`, then you can get the current document filename like so: (send (object-name ip) get-filename) And pass it as an argument to your button function. > On Jun 25, 2019, at 1:10 PM, Ksh

[racket-users] Language-Specific Plugins: Toolbar button functionality to call drracket:eval:expand-program

2019-06-25 Thread Kshitij Sachan
I'm working on a DSL to represent 3D geometrical shapes. I'm adding a language-specific plugin (toolbar button) that should: 1) expand the source code to get a module object, 2) evaluate the module object, 3) dynamic-require that module object, 4) Create an OpenGL Context, 5) render this object

[racket-users] Racket plugin access the path of a file

2019-06-25 Thread Kshitij Sachan
I'm trying to make a language-specific toolbar button that when clicked prints the path of the file the button is clicked from. I've been able to set up the button, but how I don't know how to access the path of the current file. I've basically got two different files, let's call them button.rk