Code Monkey home page Code Monkey logo

Comments (2)

willghatch avatar willghatch commented on May 30, 2024

Thanks for your feedback.

In some ways it already supports at-expressions. You can do this already:

#lang at-exp racket
(require rash)
;; this requirement will go away soon
(require rash/demo/setup)
@rash|{ls -l | grep foobar}|

I haven't yet gotten around to making the readtable in #lang rash customizable, but it's near the top of my rash to-do list, then you will be able to add the at-expression trigger character you like to both the line-syntax and when you escape to racket.

But note that you should use @rash|{}| rather than @rash{} if you want to nest anything or use commands like ssh user@host, or you will have issues with the at-reader producing non-string things that make it barf when it wants to read them with the next readtable.

I still prefer (rash «ls | grep foo») or ◸ls | grep foo◹ (or $(ls | grep foo) once I get around to the readtable improvements I plan on doing [eg. to allow readtable trigger values to be more than just a character]) for various reasons. But I definitely want to support people who want to add the at-reader to their readtable. So I'll add that feature soon.

from racket-rash.

willghatch avatar willghatch commented on May 30, 2024

I haven't yet documented how to add at-expressions (which is now possible, though it's a little more involved than you would expect), but I've also stopped using weird unicode delimiters for basic things. Have you tried the new {} and #{} delimiter changes? Does that solve the immediate problem for you?

Some time soon I'll document how you can adjust the readtable as well.

from racket-rash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.