Thread: symbol table in c , suggest good material

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    16

    symbol table in c , suggest good material

    i an new to c . can any one suggest me material for easy understanding "symbol tables" in c

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    A symbol table can just be an array of structs, eg.

    Code:
    typedef struct {
    	char *literal;
    	int value;
    } token;
    "literal" would be the actual representation, eg, "2+2" or "myfunc(arg)". "value" in that case would be "4" or whatever myfunc(arg) does.

    However, if you are new to C, why is it you need to know about symbol tables? AFAIK they are used in parsing, which is usually not a trivial task.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    More often than not they are hash tables on *nix systems, so Google 'em but if you are new to C you are starting at the wrong end.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please help me as fast as possible
    By Xbox999 in forum C Programming
    Replies: 5
    Last Post: 11-30-2009, 06:53 PM
  2. Please suggest a good C++ textbook
    By puja399 in forum C++ Programming
    Replies: 7
    Last Post: 11-19-2005, 10:04 PM
  3. Good resource material
    By Blip in forum C++ Programming
    Replies: 1
    Last Post: 05-02-2005, 08:09 AM
  4. plzz suggest me some good online VC++ tuorials, i am a beginner
    By annamayya in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-18-2004, 05:56 AM
  5. Suggest a good book for Unix/Linux Network programming
    By Unregistered in forum Linux Programming
    Replies: 4
    Last Post: 06-29-2002, 05:06 PM