mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] Need help for using String-replace


Chronological Thread 
  • 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

Attachment: init-haskell.scm
Description: Binary data




Archive powered by MHonArc 2.6.19.

Top of page