Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Syntax extension for including strings from external file   Message List  
Reply | Forward Message #11185 of 11541 |
Re: "ocaml_beginners"::[] Syntax extension for including strings from external file


Hi,

> You can do 
>
>   INCLUDE "file.ml"
>
> where file.ml contains
>
>   let str = "................"
>
> Now, it is not clear why you would like to include that into your code
> instead of reading a text file.

Thanks, that will do. But which syntax extension provides that facility?
(It doesn't seem to work with vanilla Ocaml). I know you are associated with
the Delimited Overloading project. Would that be it?

Cheers,
Dario







Thu Jul 9, 2009 7:13 pm

darioteixeira
Offline Offline
Send Email Send Email

Forward
Message #11185 of 11541 |
Expand Messages Author Sort by Date

Hi, Is there a syntax extension that allows a string to be assigned the contents of a file? So instead of doing let str = "very long string" one would just ...
Dario Teixeira
darioteixeira
Offline Send Email
Jul 9, 2009
6:03 pm

Hi, ... Thanks, that will do. But which syntax extension provides that facility? (It doesn't seem to work with vanilla Ocaml). I know you are associated with ...
Dario Teixeira
darioteixeira
Offline Send Email
Jul 9, 2009
7:13 pm

Hi again, ... Btw, I just noticed that Delimited Overloading does include a "Macro" module offering the INCLUDE facility. As for why I need this: I want to...
Dario Teixeira
darioteixeira
Offline Send Email
Jul 9, 2009
7:18 pm

... Try include_file with xstrp4: http://projects.camlcity.org/projects/xstrp4.html...
Jake Donham
jake.donham
Offline Send Email
Jul 9, 2009
7:41 pm

... There is a small utility call ocamlify: https://forge.ocamlcore.org/projects/ocamlify/ http://darcs.ocamlcore.org/repos/ocamlify/ocamlify/ (darcs...
Sylvain Le Gall
gildor16478
Offline Send Email
Jul 9, 2009
8:20 pm

Hi, ... Thank you all for your suggestions. I ended up using xstrp4, because its "include_file" facility allows me to directly assign to a string the...
Dario Teixeira
darioteixeira
Offline Send Email
Jul 10, 2009
12:24 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help