search for: ocamllex

Displaying 12 results from an estimated 12 matches for "ocamllex".

2009 Apr 14
4
[LLVMdev] LLVM OCaml Tutorial
I'm currently going through the LLVM OCaml bindings tutorial in preparation for using LLVM in my own project. While the tutorial is very helpful, it was somewhat hard to start due to the fact that I plan on using ocamllex and ocmalyacc and the tutorial hand rolls their own lexer and parser. I have managed to adapt almost all of the tutorial code into using ocamllex and ocamlyacc (the only thing I'm missing is the ability to assign precendence to user defined binary and unary operators), and was wondering if the...
2009 Apr 21
0
[LLVMdev] LLVM OCaml Tutorial
2009/4/13 Chris Wailes <chris.wailes at gmail.com>: > I'm currently going through the LLVM OCaml bindings tutorial in preparation > for using LLVM in my own project.  While the tutorial is very helpful, it > was somewhat hard to start due to the fact that I plan on using ocamllex and > ocmalyacc and the tutorial hand rolls their own lexer and parser. > > I have managed to adapt almost all of the tutorial code into using ocamllex > and ocamlyacc (the only thing I'm missing is the ability to assign > precendence to user defined binary and unary operators),...
2009 Apr 22
2
[LLVMdev] LLVM OCaml Tutorial
...When I tried it the pre-processor executable had not been created and installed. When the compiler tried to pass it through, it couldn't find anything. It has been a little bit since I tried, and there may have been updates, so the issue may have been fixed. Well you still run into that with ocamllex/ocamlyacc :) Maybe I'm just > used to the stream syntax extension, but I figured it was fair game > since it's part of the standard install. It's not my fault the fedora > project decided to make it not part of the standard ocaml install :) That is perfectly understandable....
2009 Apr 18
1
[LLVMdev] LLVM-OCaml Bindings Tutorial
Attached are alternative the files for chapters 1-7 that use ocamlyacc and ocamllex. I have cleaned them up and debugged them as best I can but I may have missed something, so any comments on them would be great. Also, the LLVM-OCaml bindings are messed up in Fedora 10 (some of the binary files point to their origonal build directory) so I had to put in a dirty hack in the Makef...
2009 Apr 18
0
[LLVMdev] LLVM OCaml Tutorial
On Tuesday 14 April 2009 01:29:44 Chris Wailes wrote: > I have managed to adapt almost all of the tutorial code into using ocamllex > and ocamlyacc (the only thing I'm missing is the ability to assign > precendence to user defined binary and unary operators), and was wondering > if ther would be an interest in adding my code as supplimental material. Yes! I thought it was a bit of a shame that so much precious LLV...
2009 Apr 22
0
[LLVMdev] LLVM OCaml Tutorial
...ension and lex/yacc. You may also be interested in this LLVM-based example in OCaml that uses camlp4 for parsing directly: http://groups.google.com/group/fa.caml/msg/5aee553df34548e2 > Secondly, it seems odd to be writing custom parsers > and lexers after tools like Bison and Flex (and ocamllex and ocamlyacc) > have been around for some time. Is there any particular reason the C++ > tutorial is using hand coded parsers and lexers? Is there a technical > reason? I found flex and bison really tedious to use from C++. That was a long time ago and there are probably better alter...
2010 Jun 28
8
[PATCH] add xl ocaml bindings
.../uuid libs/mmap \ libs/log libs/xc libs/eventchn \ - libs/xb libs/xs + libs/xb libs/xs libs/xl SUBDIRS_PROGRAMS = xenstored diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 63b6b2e..a2085d7 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -9,7 +9,7 @@ OCAMLLEX ?= ocamllex OCAMLYACC ?= ocamlyacc CFLAGS += -fPIC -Werror -CFLAGS += -I$(TOPLEVEL)/../include -I$(TOPLEVEL)/../libxc +CFLAGS += -I$(TOPLEVEL)/../include -I$(TOPLEVEL)/../libxc -I$(TOPLEVEL)/../xenstore -I$(TOPLEVEL)/../libxl CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml CFLAG...
2015 Dec 02
3
[PATCH 0/3] [FOR COMMENTS ONLY] Rework inspection.
This is something I've been working on: Reworking inspection so it's not a big mess of ad hoc C code, but instead uses a well-defined domain-specific language to describe how we inspect guests. The best introduction to this is the manual page, which I include below (it's also included in patch 2/3). Rich. ---------------------------------------------------------------------- NAME
2016 Feb 23
4
[PATCH v3 0/4] [FOR COMMENTS ONLY] Rework inspection.
Previously posted: https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html Inspection now really succeeds on a small number of simple guests. To test it out: $ ./run guestfish -v -x -a /tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection --verbose" Rich.
2015 Dec 05
6
[PATCH 0/6 v2] [FOR COMMENTS ONLY] Rework inspection.
This is a more working version. Inspection (partially) succeeds on a real guest this time :-) You can test it out on a real guest (in this case, a CentOS disk image located at /tmp/centos-6.img) by doing: $ ./run guestfish -v -x -a /tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection --verbose" which will print lots of debugging, and at the end the
2016 Jan 21
8
[PATCH v3 0/6] [FOR COMMENTS ONLY] Rework inspection.
For background on this change, see: https://rwmj.wordpress.com/2015/12/06/inspection-now-with-added-prolog/ v2 was previously posted here: https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html To test this patch series on a real guest, you can do: $ ./run guestfish -v -x -a /var/tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...9; ` + if test "$TMPVERSION" != "$OCAMLVERSION" ; then + AC_MSG_RESULT([version differs from ocamlc; ocamlopt.opt discarded.]) + else + OCAMLOPT=$OCAMLOPTDOTOPT + fi fi fi @@ -92,7 +92,7 @@ AC_DEFUN([AC_PROG_OCAMLLEX], if test "$OCAMLLEX" != "no"; then AC_CHECK_TOOL([OCAMLLEXDOTOPT],[ocamllex.opt],[no]) if test "$OCAMLLEXDOTOPT" != "no"; then - OCAMLLEX=$OCAMLLEXDOTOPT + OCAMLLEX=$OCAMLLEXDOTOPT fi fi AC_SUBST([OCAMLLEX]) @@ -114,7 +114,7 @@...