Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Redex: re-writing ...?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Asumu Takikawa  
View profile  
 More options Oct 11 2012, 6:45 pm
From: Asumu Takikawa <as...@ccs.neu.edu>
Date: Thu, 11 Oct 2012 18:38:47 -0400
Local: Thurs, Oct 11 2012 6:38 pm
Subject: [racket] Redex: re-writing ...?
Hi all,

Is there any easy way to globally re-write the ellipsis pattern in Redex
to some other representation of a sequence? (for typesetting)

For example, re-writing
  (e ...) to the equivalent of \overline{e}

I couldn't think of a way to do this with lw-rewriters since those
always seem to dispatch on the head of a list. Atomic rewriters also
don't work since they wouldn't let me get the line. Am I missing
anything?

Cheers,
Asumu
____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robby Findler  
View profile  
 More options Oct 11 2012, 7:58 pm
From: Robby Findler <ro...@eecs.northwestern.edu>
Date: Thu, 11 Oct 2012 18:57:26 -0500
Local: Thurs, Oct 11 2012 7:57 pm
Subject: Re: [racket] Redex: re-writing ...?
I don't think that's currently possible.

You might try adding it as an option in the lw->pict function (or
something it calls). Beware, tho, that an ellipsis can have anything
at all inside it, so some care will have to be taken to get it to look
reasonable (I think it doesn't have to look great if the stuff inside
is sufficiently strange, but it should probably at least look
reasonable).

That is, this seems like something that'd be a reasonable option to
have for configuring Redex's typesetting setup.

Robby

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »