Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. void RecTextGenerator(map<string,Definition>& grammar,Production pro){
  3. for(Production::iterator it = pro.begin(); it != pro.end(); ++it){
  4.  
  5. if(grammar.find(*it) != grammar.end()){
  6. Definition Deftmp = grammar[*it];
  7. Production Protmp = Deftmp.getRandomProduction();
  8. RecTextGenerator(grammar,Protmp);
  9. }
  10. cout << *it << " ";
  11. }
  12. }
  13. //mismine anu es find sworia eg mainteresebs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement