Subject: mailing-list for TeXmacs Users
List archive
From : Bertrand BRATSCHI <address@hidden>- To: texmacs-users <address@hidden>
- Subject: [TeXmacs] Need help for using String-replace
- Date: Thu, 23 Aug 2018 13:46:41 +0200
I almost completed a plugin for Haskell, but I’m stuck with a problem involving string-replacement,
(due to the fact I’m very ignorant in Scheme).
I tried to modify (haskell-serialize lan t) by adding:
[1] : (string-replace s "\"" "''") "\n")
In order to substitute two simple quotes character by on double quote character.
( That allowst the plugin can accept the definition of a string, like : name = "blabla" )
I also tried the following :
[2] : (string-replace s "\n" "~") "\n")
That is for interpreting multiline expressions, or some code with Haskell indentation.
Both [1] and [2] give the expected result when used alone, but I have no idea how to combinate them (please have a look o lines 24-25 of file init-haskell in attachment )
Regards,
Bertrand
Bertrand
Attachment:
init-haskell.scm
Description: Binary data
- [TeXmacs] style sheet language value typing, Kyle Andrews, 08/04/2018
- <Possible follow-up(s)>
- Re: [TeXmacs] style sheet language value typing, Takama M., 08/05/2018
- Re: [TeXmacs] style sheet language value typing, Kyle Andrews, 08/06/2018
- Re: [TeXmacs] style sheet language value typing, Kyle Andrews, 08/11/2018
- [TeXmacs] Need help for using String-replace, Bertrand BRATSCHI, 08/23/2018
- Re: [TeXmacs] style sheet language value typing, Kyle Andrews, 08/11/2018
- Re: [TeXmacs] style sheet language value typing, Kyle Andrews, 08/06/2018
Archive powered by MHonArc 2.6.19.