Skip to Content.
Sympa Menu

freetds - Re: [freetds] a better libtds

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Neuhauser, Roman (GE Capital, consultant)" <Roman.Neuhauser AT ge.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] a better libtds
  • Date: Tue, 23 Aug 2011 12:25:54 +0100

> From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of James K. Lowden
> As I looked more into RDP I realized not only it but most
> lex/yacc tools are aimed at text files and are capable of handling
much
> more complex languages than is TDS. Too little and too much!
>
> Can you show me, say, a Flex rule that parses a varchar (int16,
> value N, followed by N characters)?

excuse the digression. i wouldn't be bringing up c++ if it weren't for
the fact that you guys mentioned it first. this obviously isn't Flex, i
just thought i'd pimp Boost.Spirit a bit. ;)

using phoenix::ref;
using qi::word;
using qi::repeat;
using qi::char_;

boost::uint16_t len;
word[ref(len) = _1] >> repeat(len)[char_];

--
roman




Archive powered by MHonArc 2.6.24.

Top of Page