internal use only; do not use.
> lperrmsg
> lperrno
> lperror_clear
all three are obsolete, and do nothing at all. They're only there to allow
very old programs to link & run.
> parse_options_print_total_time
ehh. The parse_options are poorly defined. About half of them affect
the parser; the other half don't affect the parser at all, but are only used
by the command-line tool to control printing, display. Its not clearly
documented which is which; the two sets of options should be split apart;
haven't had much need to yet.
> Could someone let me know what parameters those functions take, and
> their return types?
Do not wrap any of these.
> The Lua wrapper should work on any platform that supports Alien:
> http://alien.luaforge.net/ , and I've tried to document (minimally,
> sometimes copying straight from the site) each function and provide a
> demonstration of usage.
I've taken a quick look. Now, link-grammar is object-oriented in it's API;
but I got no sense of this at all in the lua wrapper. Isn't lua an OO language?
So for example, I see this lua code:
-- Func: LGP.linkage_get_word(pointer Linkage, int Index)
-- Desc: This function returns the inflected word at Linkage[Index]
-- Use : word = LGP.linkage_get_word(linkage, 1)
LGP.linkage_get_word:types{ret = "string", abi= "cdecl", "pointer", "int"}
In the C API, "pointer Linkage" is actually just "pointer this", so
I expected to see Linkage as an object, and you would call
the "get_word" method on this object. The pointer to "this" or "self",
its an opaque object and should be invisible in every language except C.
(because in C, "this" has to be always visible/explicit, as the first
arg to every
function call). Right? Makes sense?
Now, there might be some odd-ball routines in the C API that might not
fit the true OO model cleanly, but I can't recall what these are off-hand,
they're probably inconsequential. As you hit these, I can fix/deprecate
them as needed.
--linas
Not to be pushy, but I'd like to see both windows and linux lua bindings.
I mean, I know that you know that I think that programming in Windows
is about as pleasant as hitting ones fingers with a hammer. ... but really,
still bashing away?
-- Linas
Maybe you've never used it .. oh, wait ...
> Lua directly into a directory and replace LGP.dll with LGP.so (or whatever
> the linux binary name is.) Everything else should be identical. I'll make a
> Linux binary archive shortly, packaged the same way. I also need to include
> Alien.lua so it can be a standalone project,
Well, I'm a big believer in one-stop shopping, so if it makes sense to include
some part with link-grammar, let me know ...
> Lua isn't OO, even though it can be... [...] there's no particular formal
> way to express calls to (this),
Oh. Huh. ok.
--linas
p.s. as to windows dll's ... note that link-grammar ships with the abiword
word-processor, so they presumably ship windows dll's as well. Just
maybe not the header files & etc.
--linas
Regards,
Simon J Stuart
http://code.google.com/p/lualinkgrammar/
--
You received this message because you are subscribed to the Google Groups
"link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to
link-grammar...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/link-grammar?hl=en.
The FFI itself isn't 100% ready for a public release, but as soon as it is
I'll be releasing a completely new development system which uses nothing but
Lua at the implementation level... with a comprehensive RTL and VCL (Visual
Component Library) and a cross-platform IDE (currently in development)....
the LGP wrapper unit will be a part of the package :)
I may actually be able to send you an x86 Linux build of the system with the
Lua wrapper and a test implementation so you can let me know what you
think... I'll get back to you as soon as I have time to do another Linux
build and test (which means pulling my 'nix box out of storage)
Regards,
Simon
-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]
-- Linas
--
Does anyone have experience with Kinect yet?
HTH,
-Rich
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2
Well, having two lua wrappers in the world is maybe one-too-many,
is it possible to consolidate/merge/pick-best-of the two wrappers?
> I may actually be able to send you an x86 Linux build of the system
Don't; I almost surely will not do anything with it. But posting
source/binaries for the world is encouraged.
--linas
luarocks install alien