Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RecTextGenerator(map<string,Definition>& grammar,Production pro){
- for(Production::iterator it = pro.begin(); it != pro.end(); ++it){
- if(grammar.find(*it) != grammar.end()){
- Definition Deftmp = grammar[*it];
- Production Protmp = Deftmp.getRandomProduction();
- RecTextGenerator(grammar,Protmp);
- }
- cout << *it << " ";
- }
- }
- //mismine anu es find sworia eg mainteresebs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement