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...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 5121 - 5150 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
5121
... You probably forgot to open one of the needed module. If you're using Debian you should have ocaml-findlib installed, I suggest to use it! $ ocaml ...
Stefano Zacchiroli
zacchiro
Offline Send Email
Dec 1, 2005
8:02 am
5122
Hi Stefano, ... [...] ... [...] ... Thank you very much, that's exactly what I was looking for. Cheers, :) Pat...
patrick jayet
jayetp@...
Send Email
Dec 1, 2005
1:27 pm
5123
Dear friends I am trying to count the memory my program is using. I use Gc module and do like this let stat = Gc.quick_stat in printf "%e" (stat.minor_words +....
Zhifeng Sheng
z.sheng@...
Send Email
Dec 1, 2005
2:21 pm
5124
... Yes. This is simply a namespace problem. If you have a value "stat" of the type "Gc.stat" and you want to access its field called "minor_words" then you ...
Jon Harrop
harropjon
Offline Send Email
Dec 1, 2005
2:46 pm
5125
I'm tinkering with ocamllex and was wondering if there is something like ^ for beginning of line as it is in lex because I'd like to check for tokens which...
Manfred Lotz
manfred_lotz
Offline Send Email
Dec 1, 2005
6:02 pm
5126
Hi folks, I've just written a syntax extension, partly to offer a different interface to the Arg module, and partly to learn campl4. I'd appreciate any...
Eric Breck
invertedcow
Offline Send Email
Dec 1, 2005
6:16 pm
5127
... Sweet. I think you should put it to the OCaml linkdb under "OCaml syntax extension" http://www.npc.de/ocaml/linkdb/ You can also make an announcement to...
Martin Jambon
BioMim
Offline Send Email
Dec 1, 2005
6:55 pm
5128
I'm trying to reconcile an Ocamlyacc v. Yacc question. using the following Ocamllex file: { exception Eof open Crap_par } rule tokens = parse [' ']+ { tokens...
Joshua Smith
kognative
Offline Send Email
Dec 1, 2005
8:56 pm
5129
Joshua Smith wrote: [...] ... [...] ... It seems to me that the former is NOT a translation of the first. The first would rather use EOL as a separator, like...
Stalkern 2
stalkern2
Offline Send Email
Dec 2, 2005
8:02 am
5130
I checked it too but I found it either, so I guess you have to do it by yourself. Something like: rule count = parse ... what comes after is placed in a new...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
10:19 am
5131
main: titles EOF { $1 } ; ... ; title: TITLE QSTRING EOL { $2 } ; what we can see there is that the rule titles is recursive on the left side of its definition...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
10:41 am
5132
... { "" } ... It works just fine with that modification. To the other replyers: 1. former = first, so its's hard to follow. 2. titles does have a base case ...
Radu Grigore
radugrigore
Offline Send Email
Dec 2, 2005
12:12 pm
5133
... fwiw, that will miss a potential match in the first line of the file. Cheers, Joaquin Cuenca Abela e98cuenc at yahoo dot com ...
Joaquin Cuenca Abela
e98cuenc
Offline Send Email
Dec 2, 2005
12:25 pm
5134
... NOW titles has a base case (the leaf of the abstract synta tree) means the empty case by which the recursion ends and the parser makes a reduce action...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
1:23 pm
5135
Perhaps I understood what you mean... 1. you can start each file with a new line 2. you can decide that a new line is what there's B4 the '\n' char ending each...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
1:36 pm
5136
... What do you mean? Nothing will be missed... What is the problem you are tallking about? Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
Dec 2, 2005
2:49 pm
5137
On Fri, 2 Dec 2005 11:17:02 +0100 ... Actually I have to do something like this which isn't beautiful: <----- snip ----> { open Printf let bol = ref true } ...
Manfred Lotz
manfred_lotz
Offline Send Email
Dec 2, 2005
2:57 pm
5138
On Fri, 2 Dec 2005 15:41:04 +0100 ... What he is saying is that there is no '\n' in the beginning of a file but nevertheless the beginning of a file is also...
Manfred Lotz
manfred_lotz
Offline Send Email
Dec 2, 2005
3:06 pm
5139
To Oliver, I replied Joaquin who commented that doing so rule count = parse ... He will miss a potential match in the first line of the file. For me sounded...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
3:23 pm
5140
... Well, it's a bit cleaner (and more useful for error messages tho keep track of line numbers and relative positions in the line (offsets in the buffer)....
William D. Neumann
scoey13
Offline Send Email
Dec 2, 2005
4:11 pm
5141
... Why should a line-end marker be the beginning of a line?! (The first line is the beginning of a file...) Why should there be the end in the beginning? ... ...
Oliver Bandel
oliver@...
Send Email
Dec 2, 2005
4:38 pm
5142
... ah, now I understand... something like Perl's m/^text/g; # or similar OK. So first line must be handled differently. What's about using two lexer-rules for...
Oliver Bandel
oliver@...
Send Email
Dec 2, 2005
4:41 pm
5143
... There shouldn't be. Hence the problem. The original poster, Manfred, wanted a way to match patterns occurring at the beginning of a line. Now, say patt...
William D. Neumann
scoey13
Offline Send Email
Dec 2, 2005
5:08 pm
5144
Hello, your soulution looks very low-level (in the sense of going down to the basment using a candle for lighting the flowers instead of switching on the...
Oliver Bandel
oliver@...
Send Email
Dec 2, 2005
5:33 pm
5145
... Well, that's a difference from yacc/bison where it doesn't matter if you have an "action" or not. The pipe is enough. And that makes more sense. Ocamlyacc...
Radu Grigore
radugrigore
Offline Send Email
Dec 2, 2005
5:44 pm
5146
... (I meant: ...switching it on without going down to the basement...)...
Oliver Bandel
oliver@...
Send Email
Dec 2, 2005
5:45 pm
5147
I really think this way is better in order to pay attantion on and control when and where the ambiguity problem of a grammar turns out. Since to have full...
Giuseppe Lo Brutto
bit2rate
Offline Send Email
Dec 2, 2005
6:12 pm
5148
... I don't follow you here, but... No, it clearly makes no sense and should be filed as a bug. The _grammar_ is the same in both cases. What actions you write...
Radu Grigore
radugrigore
Offline Send Email
Dec 2, 2005
6:34 pm
5149
On Fri, 2 Dec 2005 09:11:18 -0700 (MST) ... Thanks for your help. Your solution looks good. -- Manfred...
Manfred Lotz
manfred_lotz
Offline Send Email
Dec 2, 2005
6:35 pm
5150
... Not sure I understand that... could you elaborate? ... Regarding the readfile bit, yes. You missed the advantage that that was some code I had lying...
William D. Neumann
scoey13
Offline Send Email
Dec 2, 2005
7:19 pm
Messages 5121 - 5150 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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