extracting identifiers

  • Thread starter Hendrik Wendler
  • Start date
H

Hendrik Wendler

Hi everybody,

for something like a script interpreter - or better
a script assembler - i need a routine, lib or anything
that extracts identifiers. what i want to do is
assemble short script templates
into one.

does anyone know a simple and efficient (runtime + realtime!)
way to extract identifiers (variables&function names) from
a language like c, javascript ? i know i could do it with
yacc/flex, but is there a simpler way to do it?

all the best,
hendrik
 
C

CBFalconer

Hendrik said:
for something like a script interpreter - or better
a script assembler - i need a routine, lib or anything
that extracts identifiers. what i want to do is
assemble short script templates
into one.

does anyone know a simple and efficient (runtime + realtime!)
way to extract identifiers (variables&function names) from
a language like c, javascript ? i know i could do it with
yacc/flex, but is there a simpler way to do it?

Look at the source code to id2id. See:

<http://cbfalconer.home.att.net/download/id2id-20.zip>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top