bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] gawk: questions:


From: Andrew J. Schorr
Subject: Re: [bug-gawk] gawk: questions:
Date: Mon, 14 Jan 2013 13:04:17 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

On Mon, Jan 14, 2013 at 07:54:55PM +0200, Denis Shirokov wrote:
> 1) Is this possible to create function like above _is() by dynamic extensions?

No.

> 2) How deep provide dynamic extensions interface into the gawk-engine?

Please read the extensive documentation.

> 2A) is this possible to work with primary parser(at the step when gawk
> analyze source but not executed yet) ? I want to implement some syntax
> expansions like special characters. Also i want to implement more
> areas than BEGIN\END, BEGINFILE\ENDFILE

No, that would require a patch to the parser.  This cannot be accomplished
in an extension.

> 2B) can i work with types of parameters? (determinate if parameter is
> array,string or undefined)

More or less.  Extensions should have access to any needed type information.
If not, it would be a bug in the API.  Please see the documentation.

> 2C) can i implement some dynamic vars and arrays that will generate at
> the moment it's reading? (i want to add some built-in special vars -
> like _func - that will contain the name of function from where it's
> reading)

No.  That would also require patching the main code.

> 3) can i implement by dynamic extension function like `split'?

Yes.

> 4) can i implement by dynamic extension operators(directives) like
> `print', `getline', `for'?

I don't think so.

> Also:
> Can you advice me some person who can help me to start developing
> dynamic extensions? this includes installation of all needed
> software(i work under windows), basic dynamic extension examples,
> resource information and some little help. I haven't  a lot of
> expirience  with the C but i have huge expirience in assemblers and
> large expirience in GAWK. So i can start programming C in the few
> days.

Please start by reading the documentation.  And please email the list instead
of contacting me directly.  If you wish to hire a consultant to help you,
I suggest posting to the gawk mailing list and also possibly to comp.lang.awk.

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]