but how!!?You need to be more specific.
and about the rest of the post :
well map is the only thing that i can use to hold (save ) my stuff with regards of lets say line number or a value ..
and the class. i dont know much about classes, i just read deitels c++ how to program 5th editions, 8th chapter!!.
the program is divided into some member functions , each function is doing one job, and i tried my best to achieve this goal.
one member gets the input( the whole program from user (till the user enters exit to exit this part)) ,
then a parse will parse each line of statements (strings) entered by user once>(the whole program, to locate any labels , declarations , etc) .
after that it initialized the labels and declaration tabels ,
the Fetch () member gos online ,it gets one string from StringCollector map, and saves it to OurString (current string for operations from here to the end )
then an Analyzer will analye the line , it specify the kind of statement we are facing, it saves a number stating the statement type (plain , or with loops , etc0
in a choice , then Tokenizer () uses this number to do the operation on OurString. then it saves , COMMAND and OFFSET and ADDRESSING MODE stat to their respective variables ,
then convert to language machin , merges these strings together and makes a unique string ,and Memory Dumper , uses this string and line counter to fill the memory !
and then it goes back to fetch , till it reaches the end of the mapp!
and then its time to call Execution Enging () .this member will run codes from memory .!
well this is the whole stuff im doing , so far parse, analyzer, tokenizer, are implemented! and the other 3 remains.