Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Eiffel 0.39 KB | None | 0 0
  1. class TEST
  2.  
  3. creation
  4.     make
  5.  
  6. feature { ANY }
  7.     make is
  8.         local
  9.             my_dict : DICTIONARY[STRING,STRING]
  10.             input_word: STRING
  11.         do
  12.             create my_dict.make
  13.  
  14.             my_dict.put("and","dan and")
  15.             my_dict.put("abder","bread beard brade")
  16.  
  17.             input_word:="adn"
  18.             -- ^ Thats for example if someone inputs "dan"
  19.             -- and it is put into base form.
  20.  
  21.             print(my_dict@inputWord)
  22.         end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement