项目作者: utkuaydin

项目描述 :
CMP3004 - Formal Languages and Automata Theory Course Project
高级语言: C++
项目地址: git://github.com/utkuaydin/finite-automata.git
创建时间: 2018-05-09T14:17:05Z
项目社区:https://github.com/utkuaydin/finite-automata

开源协议:

下载


Regular Expression Engine

Final project for Formal Languages and Automata Theory (CMP3004) course, by Utku Aydın and Ömer Buğra Selvi.

Design and Implementation

In main.cpp, the program reads two arguments: the filename and the regular expression. Then Engine::createNFA() first
converts the given expression to a postfix expression and then constructs a NFA by parsing it. After the NFA is constructed
then the program reads every line in the input file and checks if the any string sequence that’s accepted by the NFA exists
in the line.

NFA construction

Construction of NFA is done by using a stack. After reading each character of the postfix expression, a new NFA is created
by simply running NFA class’ relevant operation method.

Regular expression evaluation

NFA::accepts() method returns true whenver given string has a substring that adheres to the given regular expression. The
algorithm starts by finding which states which we can transition into from the inital state. First, it finds epsilon
transitions, then it finds all states we can transition into by using the currently evaluated character. If all goes well,
and we arrive into any final state, NFA::accepts() returns true.

Tests

We used Fyodor Dostoevsky’s Crime and Punishment, The Brothers Karamazov and The Idiot books for testing our program. Results
can be found at sample outputs section.

Execution

  1. RegexEngine <expression> <filename>

Sample Outputs

  1. $ ./RegexEngine Inquisitor samples/the_brothers_karamazov.txt
  2. The following NFA was built:
  3. Initial State:
  4. 0
  5. All States:
  6. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
  7. Accepted States:
  8. [19]
  9. Transitions:
  10. (0, 1, 'I')
  11. (2, 3, 'n')
  12. (1, 2, epsilon)
  13. (4, 5, 'q')
  14. (3, 4, epsilon)
  15. (6, 7, 'u')
  16. (5, 6, epsilon)
  17. (8, 9, 'i')
  18. (7, 8, epsilon)
  19. (10, 11, 's')
  20. (9, 10, epsilon)
  21. (12, 13, 'i')
  22. (11, 12, epsilon)
  23. (14, 15, 't')
  24. (13, 14, epsilon)
  25. (16, 17, 'o')
  26. (15, 16, epsilon)
  27. (18, 19, 'r')
  28. (17, 18, epsilon)
  29. Accepted, line 94: Chapter V. The Grand Inquisitor
  30. Accepted, line 11045: My poem is called The Grand Inquisitor’; its a ridiculous thing, but I
  31. Accepted, line 11050: Chapter V. The Grand Inquisitor
  32. Accepted, line 11143: Dei_, been burnt by the cardinal, the Grand Inquisitor, in a magnificent
  33. Accepted, line 11176: cardinal himself, the Grand Inquisitor, passes by the cathedral. He is an
  34. Accepted, line 11191: Inquisitor. He blesses the people in silence and passes on. The guards
  35. Accepted, line 11196: the prison is suddenly opened and the Grand Inquisitor himself comes in
  36. Accepted, line 11637: its falsethose are the worst of the Catholics, the Inquisitors, the
  37. Accepted, line 11639: Inquisitor. What are these sins of mankind they take on themselves? Who
  38. Accepted, line 11649: believe in God perhaps. Your suffering Inquisitor is a mere fantasy.”
  39. Accepted, line 11662: why your Jesuits and Inquisitors have united simply for vile material
  40. Accepted, line 11666: only one like my old Inquisitor, who had himself eaten roots in the desert
  41. Accepted, line 11680: Perhaps nothing but Atheism, thats all their secret. Your Inquisitor does
  42. Accepted, line 11721: I meant to end it like this. When the Inquisitor ceased speaking he
  43. Accepted, line 30362: author of a promising poem entitled _The Grand Inquisitor_. I was only
  44. Accepted, line 30365: I forbid you to speak of _The Grand Inquisitor_,” cried Ivan, crimson

  1. $ ./RegexEngine "(A|a)rriv(al|ed)" samples/the_brothers_karamazov.txt
  2. The following NFA was built:
  3. Initial State:
  4. 4
  5. All States:
  6. [4, 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 21, 13, 14, 15, 16, 17, 18, 19, 20]
  7. Accepted States:
  8. [16, 20]
  9. Transitions:
  10. (4, 0, epsilon)
  11. (4, 2, epsilon)
  12. (0, 1, 'A')
  13. (2, 3, 'a')
  14. (5, 6, 'r')
  15. (1, 5, epsilon)
  16. (3, 5, epsilon)
  17. (7, 8, 'r')
  18. (6, 7, epsilon)
  19. (9, 10, 'i')
  20. (8, 9, epsilon)
  21. (11, 12, 'v')
  22. (10, 11, epsilon)
  23. (21, 13, epsilon)
  24. (21, 17, epsilon)
  25. (13, 14, 'a')
  26. (15, 16, 'l')
  27. (14, 15, epsilon)
  28. (17, 18, 'e')
  29. (19, 20, 'd')
  30. (18, 19, epsilon)
  31. (12, 21, epsilon)
  32. Accepted, line 780: they gave him, saying that he intended to go third class. On his arrival
  33. Accepted, line 800: returned to our town only three years before Alyoshas arrival. His former
  34. Accepted, line 815: Pavlovitch might have got into terrible scrapes. Alyoshas arrival seemed
  35. Accepted, line 1155: The arrival of his two brothers, whom he had not known till then, seemed
  36. Accepted, line 1157: his halfbrother Dmitri (though he arrived later) than with his own
  37. Accepted, line 1253: Our visitors did not take part in the service, but arrived just as it was
  38. Accepted, line 1289: It was strange that their arrival did not seem expected, and that they
  39. Accepted, line 1393: Heres the hermitage. Weve arrived,” cried Fyodor Pavlovitch. The gates
  40. Accepted, line 1768: awaiting me who arrived before you. But dont you tell lies all the same,”
  41. Accepted, line 3599: when Miüsov, Kalganov, and Ivan arrived. The other guest, Maximov, stood a
  42. Accepted, line 3986: Alyoshas arrival. Alyosha pierced his heart by living with him, seeing
  43. Accepted, line 4045: visitors had arrived, including Fyodor Pavlovitch, who was to stand god
  44. Accepted, line 4714: whole town, gave suppers and dances. At the time I arrived and joined the
  45. Accepted, line 4755: And then the commander of the division arrived, and kicked up the devil of
  46. Accepted, line 4792: Suddenly the new major arrived to take command of the battalion. The old
  47. Accepted, line 5016: Yes, formally and solemnly betrothed. It was all done on my arrival in
  48. Accepted, line 5517: end of dinner, and since Ivans arrival in our town he had done so every
  49. Accepted, line 6396: his arrival. Possibly he had been noticed from the window. At least,
  50. Accepted, line 6400: Alyosha thought it strange that his arrival should cause such excitement.
  51. Accepted, line 6518: heard long ago that the money had not arrived. He hadnt sent the money,
  52. Accepted, line 7239: arrived from town with a singular letter for him from Madame Hohlakov. In
  53. Accepted, line 11878: At last, feeling very cross and illhumored, Ivan arrived home, and
  54. Accepted, line 12560: evening, Fyodor Pavlovitch sent for Doctor Herzenstube, who arrived at
  55. Accepted, line 12608: before Alyoshas arrival; his visitors had gathered together in his cell
  56. Accepted, line 14785: pointed out to all visitors on their arrival with peculiar respect and
  57. Accepted, line 16403: a fatal influence in Grushenkas life, and whose arrival she was expecting
  58. Accepted, line 16414: in his speedy arrival. Moreover, in the officers first letter which had
  59. Accepted, line 16581: When he was informed of the arrival of the captain,” he at once refused
  60. Accepted, line 17088: discussion Mitya got into the trap. Three hours later they arrived. At
  61. Accepted, line 17103: At last they arrived, and Mitya at once ran to Grushenka.
  62. Accepted, line 17892: arrival of this new man, and he had never thought of him! But how could
  63. Accepted, line 18328: waiting for Mityas arrival to nail it down and put it in the cart. Pyotr
  64. Accepted, line 18817: peeped out from the steps curious to see who had arrived.
  65. Accepted, line 19169: looked at him very affectionately: before Mityas arrival, she had been
  66. Accepted, line 19483: likely be here soon; but the cart with the provisions had not yet arrived.
  67. Accepted, line 19485: but only three girls had arrived, and Marya was not there yet. And he did
  68. Accepted, line 19852: expected cart had arrived with the wines and provisions.
  69. Accepted, line 20945: arrived only five minutes before Pyotr Ilyitch, so that his story came,
  70. Accepted, line 20999: the rural police, Mavriky Mavrikyevitch Schmertsov, who had arrived in the
  71. Accepted, line 21002: criminal till the arrival of the proper authorities, to procure also
  72. Accepted, line 21157: first arrival, Mitya had been made very welcome at the police captains,
  73. Accepted, line 21414: arrived among us, had from the first felt marked respect for Ippolit
  74. Accepted, line 22192: have done since you arrived?”
  75. Accepted, line 23207: told him, as soon as he arrived, that he had brought three thousand with
  76. Accepted, line 23256: they had not slept all night, and on the arrival of the police officers
  77. Accepted, line 26193: with her. He arrived with her in rain and sleet, sat down on the sofa,
  78. Accepted, line 26197: hour after her arrival. Suddenly she chanced to look at him intently: he
  79. Accepted, line 26454: the first directly he arrived. He galloped here from Moscow at once, of
  80. Accepted, line 26562: Hohlakov heard of his arrival from some one, and immediately sent to beg
  81. Accepted, line 28164: on the first day of his arrival, then he had visited him once more, a
  82. Accepted, line 28174: on Ivans going to see them as soon as he arrived in Moscow. But he did
  83. Accepted, line 28175: not go to them till four days after his arrival. When he got the telegram,
  84. Accepted, line 28191: brother. Yet he went to see Mitya on the first day of his arrival, and
  85. Accepted, line 28264: I only arrived today.... To see the mess you are in here.” Smerdyakov
  86. Accepted, line 30171: Well, well, what happened when he arrived?”
  87. Accepted, line 30569: drive him away: he disappeared when you arrived. I love your face,
  88. Accepted, line 30722: Visitors had arrived not only from the chief town of our province, but
  89. Accepted, line 30837: At ten oclock the three judges arrivedthe President, one honorary
  90. Accepted, line 31381: advantage of his arrival, and rushed to consult him regardless of expense.
  91. Accepted, line 31546: I have just arrived and have come to thank you for that pound of nuts, for
  92. Accepted, line 34468: with when he arrived here, at his fathers house, and why depict my client
  93. Accepted, line 35774: they all arrived together. Snegiryov opened the door hurriedly and called

  1. $ ./RegexEngine "sir,*" samples/crime_and_punishment.txt
  2. The following NFA was built:
  3. Initial State:
  4. 0
  5. All States:
  6. [0, 1, 2, 3, 4, 5, 6, 7]
  7. Accepted States:
  8. [7, 8]
  9. Transitions:
  10. (0, 1, 's')
  11. (2, 3, 'i')
  12. (1, 2, epsilon)
  13. (4, 5, 'r')
  14. (3, 4, epsilon)
  15. (7, 6, epsilon)
  16. (6, 7, ',')
  17. (8, 6, epsilon)
  18. (5, 8, epsilon)
  19. Accepted, line 159: desire to do so. Nothing that any landlady could do had a real terror
  20. Accepted, line 291: I remember, my good sir, I remember quite well your coming here,” the
  21. Accepted, line 303: Step in, my good sir.”
  22. Accepted, line 344: But thats for me to do as I please, my good sir, to wait or to sell
  23. Accepted, line 349: You come with such trifles, my good sir, its scarcely worth anything.
  24. Accepted, line 381: Here, sir: as we say ten copecks the rouble a month, so I must take
  25. Accepted, line 401: Well, we will talk about it then, sir.”
  26. Accepted, line 407: What business is she of yours, my good sir?”
  27. Accepted, line 483: felt a desire to be with other people. Something new seemed to be taking
  28. Accepted, line 532: May I venture, honoured sir, to engage you in polite conversation?
  29. Accepted, line 542: addressed. In spite of the momentary desire he had just been feeling for
  30. Accepted, line 548: I thought! Im a man of experience, immense experience, sir,” and he
  31. Accepted, line 557: Honoured sir,” he began almost with solemnity, poverty is not a vice,
  32. Accepted, line 559: and that thats even truer. But beggary, honoured sir, beggary is a
  33. Accepted, line 565: Honoured sir, a month ago Mr. Lebeziatnikov gave my wife a beating, and
  34. Accepted, line 594: Why am I not at my duty, honoured sir,” Marmeladov went on, addressing
  35. Accepted, line 622: No matter, sir, no matter!” he went on hurriedly and with apparent
  36. Accepted, line 639: if only she felt for me! Honoured sir, honoured sir, you know every man
  37. Accepted, line 653: Such is my fate! Do you know, sir, do you know, I have sold her very
  38. Accepted, line 702: proud.... And then, honoured sir, and then, I, being at the time a
  39. Accepted, line 708: married me! For she had nowhere to turn! Do you understand, sir, do you
  40. Accepted, line 738: sir, on my own account with a private question. Do you suppose that
  41. Accepted, line 759: her, dont blame her, honoured sir, dont blame her! She was not herself
  42. Accepted, line 781: Since then, sir,” he went on after a brief pause--“Since then, owing
  43. Accepted, line 826: That was five weeks ago, sir. Yes.... As soon as Katerina Ivanovna
  44. Accepted, line 877: Honoured sir, honoured sir,” cried Marmeladov recovering himself--“Oh,
  45. Accepted, line 878: sir, perhaps all this seems a laughing matter to you, as it does to
  46. Accepted, line 886: Quite excusable, sir. Well, then, sir (Marmeladov suddenly gave a sort
  47. Accepted, line 915: you think, my dear sir? For now shes got to keep up her appearance. It
  48. Accepted, line 919: foot when she has to step over a puddle. Do you understand, sir, do you
  49. Accepted, line 923: me, eh? Are you sorry for me, sir, or not? Tell me, sir, are you sorry
  50. Accepted, line 985: Let us go, sir,” said Marmeladov all at once, raising his head and
  51. Accepted, line 1004: of.... Know, sir, that such blows are not a pain to me, but even an
  52. Accepted, line 1079: positive con-so-la-tion, ho-nou-red sir,” he called out, shaken to and
  53. Accepted, line 1432: expressing through her his desire to make our acquaintance. He was
  54. Accepted, line 1821: Do you understand, sir, do you understand what it means when you have
  55. Accepted, line 1847: intently. He felt a sudden desire to find out what it was that was so
  56. Accepted, line 3071: But why, my good sir, all of a minute.... What is it?” she asked,
  57. Accepted, line 3927: And pray, what time were you directed to appear, sir?” shouted the
  58. Accepted, line 3944: Be silent! You are in a government office. Dont be impudent, sir!”
  59. Accepted, line 4112: Raskolnikov had a sudden desire to say something exceptionally pleasant
  60. Accepted, line 4139: Nobody asks you for these personal details, sir, weve no time to
  61. Accepted, line 4827: sir. That was Alexey Semyonovitch; he is in our office, too.”
  62. Accepted, line 4831: Yes, indeed, sir, he is of more weight than I am.”
  63. Accepted, line 4841: know him, sir?”
  64. Accepted, line 6009: Pyotr Petrovitch, and desire for good exists, though its in a childish
  65. Accepted, line 6071: Excuse me, sir,” said Luzhin, affronted, and speaking with excessive
  66. Accepted, line 6074: Oh, my dear sir... how could I?... Come, thats enough,” Razumihin
  67. Accepted, line 6217: you, sir,” he began deliberately, doing his utmost to restrain himself
  68. Accepted, line 6418: trilled the thin voice of the singer. Raskolnikov felt a great desire to
  69. Accepted, line 6447: I say, sir,” the girl shouted after him.
  70. Accepted, line 6497: Yes, sir, heres to-days. No vodka?”
  71. Accepted, line 6629: desire to shout at them, to swear at them, to put out his tongue at
  72. Accepted, line 6688: Raskolnikov had an intense desire again to put his tongue out.” Shivers
  73. Accepted, line 6845: you see that I dont want your benevolence? A strange desire you have to
  74. Accepted, line 8397: slightest desire to enter into more personal relations with the two
  75. Accepted, line 8886: visit to him in his illness yesterday, and, moreover, since I desire
  76. Accepted, line 9578: life)--but to the widow. In all this I see a too hasty desire to slander
  77. Accepted, line 10255: and such things belong to you, and that you desire to redeem them...
  78. Accepted, line 11289: obey, trembling creation, and not _to have desires_, for thats not for
  79. Accepted, line 12115: desire to do so, I was unable to meet you yesterday. But I trust all
  80. Accepted, line 12152: uneasiness, unless, of course, you are yourselves desirous of getting
  81. Accepted, line 12222: died so strangely, is a terrible instance. My only desire has been to be
  82. Accepted, line 12283: certainly desired an explanation with you and your honoured mother upon
  83. Accepted, line 12286: desire and am not able to speak openly... in the presence of others...
  84. Accepted, line 12401: Excuse me, sir,” said Luzhin, quivering with fury. I enlarged upon
  85. Accepted, line 12434: Petrovitch. Dounia has told you the reason your desire was disregarded,
  86. Accepted, line 12436: laying commands upon me. Are we to consider every desire of yours as
  87. Accepted, line 12450: But now in any case I cannot reckon on it, and I particularly desire
  88. Accepted, line 12633: He wants to make you a present of ten thousand roubles and he desires
  89. Accepted, line 13429: dread and suffering, yet she had a tormenting desire to read and to read
  90. Accepted, line 13805: irritation, yesterday you expressed a desire that I should come to you
  91. Accepted, line 14023: dear sir, are weighty matters and its astonishing how they sometimes
  92. Accepted, line 14241: expression) saying: And what were you doing, sir, pray, at ten or
  93. Accepted, line 14266: all right, but why, my good sir, in your illness and in your delirium
  94. Accepted, line 15281: is always arranged in such cases by friends or even outsiders desirous
  95. Accepted, line 15381: desire you to respect me. See!’ Am I not right?”
  96. Accepted, line 15444: continual failures and misfortunes she had come to desire so _keenly_
  97. Accepted, line 16249: you are lying, sir. You are lying and slandering from some spite against
  98. Accepted, line 17524: I thank you, honoured sir,” she began loftily. The causes that have
  99. Accepted, line 17527: You see, honoured sir, these orphans of good family--I might even say of
  100. Accepted, line 17551: Honoured sir, honoured sir, you dont know,” screamed Katerina
  101. Accepted, line 18264: reason to like me. You may think what you like, but I desire now to do
  102. Accepted, line 19242: my side with a most irresistible physical desire. Avdotya Romanovna is
  103. Accepted, line 19529: Only _adieu, mon plaisir_, may we meet again.”
  104. Accepted, line 20347: Yes, sir.”
  105. Accepted, line 20440: desired to avenge myself even, and thats a bad sign, a bad sign, a bad
  106. Accepted, line 21558: his miserable position, his poverty and helplessness, and his desire to
  107. Accepted, line 21568: but had rather shown a desire to exaggerate his guilt. All the strange
  108. Accepted, line 21825: more. Perhaps it was just because of the strength of his desires that he
  109. Accepted, line 21861: desire to live so strong and was it so hard to overcome it? Had not

  1. $ ./RegexEngine "Alyosha and (Ivan|Dmitri)" samples/the_brothers_karamazov.txt
  2. The following NFA was built:
  3. Initial State:
  4. 0
  5. All States:
  6. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 44, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43]
  7. Accepted States:
  8. [31, 43]
  9. Transitions:
  10. (0, 1, 'A')
  11. (2, 3, 'l')
  12. (1, 2, epsilon)
  13. (4, 5, 'y')
  14. (3, 4, epsilon)
  15. (6, 7, 'o')
  16. (5, 6, epsilon)
  17. (8, 9, 's')
  18. (7, 8, epsilon)
  19. (10, 11, 'h')
  20. (9, 10, epsilon)
  21. (12, 13, 'a')
  22. (11, 12, epsilon)
  23. (14, 15, ' ')
  24. (13, 14, epsilon)
  25. (16, 17, 'a')
  26. (15, 16, epsilon)
  27. (18, 19, 'n')
  28. (17, 18, epsilon)
  29. (20, 21, 'd')
  30. (19, 20, epsilon)
  31. (22, 23, ' ')
  32. (21, 22, epsilon)
  33. (44, 24, epsilon)
  34. (44, 32, epsilon)
  35. (24, 25, 'I')
  36. (26, 27, 'v')
  37. (25, 26, epsilon)
  38. (28, 29, 'a')
  39. (27, 28, epsilon)
  40. (30, 31, 'n')
  41. (29, 30, epsilon)
  42. (32, 33, 'D')
  43. (34, 35, 'm')
  44. (33, 34, epsilon)
  45. (36, 37, 'i')
  46. (35, 36, epsilon)
  47. (38, 39, 't')
  48. (37, 38, epsilon)
  49. (40, 41, 'r')
  50. (39, 40, epsilon)
  51. (42, 43, 'i')
  52. (41, 42, epsilon)
  53. (23, 44, epsilon)
  54. Accepted, line 28134: slowly homewards. Both Alyosha and Ivan were living in lodgings; neither
  55. Accepted, line 31041: excepting Alyosha and Ivan, but he obtained no exact information from any

  1. $ ./RegexEngine "Russia(n)*" samples/the_idiot.txt
  2. The following NFA was built:
  3. Initial State:
  4. 0
  5. All States:
  6. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  7. Accepted States:
  8. [13, 14]
  9. Transitions:
  10. (0, 1, 'R')
  11. (2, 3, 'u')
  12. (1, 2, epsilon)
  13. (4, 5, 's')
  14. (3, 4, epsilon)
  15. (6, 7, 's')
  16. (5, 6, epsilon)
  17. (8, 9, 'i')
  18. (7, 8, epsilon)
  19. (10, 11, 'a')
  20. (9, 10, epsilon)
  21. (13, 12, epsilon)
  22. (12, 13, 'n')
  23. (14, 12, epsilon)
  24. (11, 14, epsilon)
  25. Accepted, line 89: neighbour had been obliged to bear the full severity of a Russian
  26. Accepted, line 93: the long cold journey through Russia, from Eydkuhnen to St. Petersburg.
  27. Accepted, line 105: un-Russian.
  28. Accepted, line 129: been long absent from Russia, more than four years; that he had been
  29. Accepted, line 145: is to get hold of our good Russian money free, gratis, and for nothing.”
  30. Accepted, line 249: No, I dont--not at all! I hardly know anyone in Russia. Why, is that
  31. Accepted, line 764: the houses--a Russian cant live in them in the winter until he gets
  32. Accepted, line 777: You must have forgotten Russia, hadnt you?”
  33. Accepted, line 780: wonder at myself for not having forgotten how to speak Russian? Even
  34. Accepted, line 784: on and on talking Russian.”
  35. Accepted, line 1002: coming. You see I have not been in Russia for four years, and knew very
  36. Accepted, line 1139: despatched the young man to Russia.
  37. Accepted, line 1143: Then you have no one, absolutely _no_ one in Russia?” he asked.
  38. Accepted, line 1156: Russian books.”
  39. Accepted, line 1158: Russian books, indeed? Then, of course, you can read and write quite
  40. Accepted, line 1277: Yes, I do! I have only been one day in Russia, but I have heard of
  41. Accepted, line 1389: have tried to translate the French character into the Russian letters--a
  42. Accepted, line 1392: all.’ That is the script of the Russian War Office. That is how official
  43. Accepted, line 1680: to an estate of Totskis, in one of the central provinces of Russia,
  44. Accepted, line 1699: forgot all about the child; but five years after, returning to Russia,
  45. Accepted, line 2280: they took me away from Russia, I remember I passed through many German
  46. Accepted, line 3110: indeed, I was far from thinking that I should ever return to Russia.
  47. Accepted, line 5812: nowadays? Especially here, in our dear Russia. How it has happened I
  48. Accepted, line 6456: in real Russian style. Well, when I began cursing at her, a strange
  49. Accepted, line 6574: pay it in there for you with pleasure.’ I liked that old fellow, Russian
  50. Accepted, line 6740: out, did not understand a word of Russian, and seemed to be as stupid as
  51. Accepted, line 6810: he exhibited, as if by accident, that peculiarly Russian object--an
  52. Accepted, line 7819: flying somewhere into the interior of Russia this time, and that
  53. Accepted, line 9182: lying before me. What! have you begun to read Russian history?’ she
  54. Accepted, line 9184: Solovieffs Russian History and read it, because I knew nothing. Thats
  55. Accepted, line 9374: unbelievers nowadays, especially Russians, I have been told. You ought
  56. Accepted, line 9436: a tremendous impression upon me. I had understood nothing about Russia
  57. Accepted, line 9463: seen in the heart of a Russian. This is a conviction which I have gained
  58. Accepted, line 9464: while I have been in this Russia of ours. Yes, Parfen! there is work to
  59. Accepted, line 9465: be done; there is work to be done in this Russian world! Remember what
  60. Accepted, line 9735: about the murder, and that quite recently. Since he came to Russia, he
  61. Accepted, line 9743: a passionate faith in the Russian soul, however, and what discoveries he
  62. Accepted, line 9745: soul is a mystery, and depths of mystery lie in the soul of a Russian.
  63. Accepted, line 10167: hundred on the thousandth anniversary of the foundation of the Russian
  64. Accepted, line 10177: the two hundred guests and the thousandth anniversary of the Russian
  65. Accepted, line 10584: Its simply that there is a Russian poem,” began Prince S., evidently
  66. Accepted, line 10978: is not a question of showing that Pushkin is stupid, or that Russia must
  67. Accepted, line 11037: the purest Russian blood ran in his veins. Lebedeffs nephew, whom
  68. Accepted, line 11149: Strange things are going on in our so-called Holy Russia in this age of
  69. Accepted, line 11164: Russia, wearing gaiters like a foreigner, and shivering with cold in
  70. Accepted, line 11169: his story proves the truth of the Russian proverb that happiness is
  71. Accepted, line 11175: of a very rich Russian landowner. In the good old days, this man,
  72. Accepted, line 11180: to have been one of those Russian parasites who lead an idle existence
  73. Accepted, line 11184: least a third of the money paid by Russian peasants to their lords in
  74. Accepted, line 11190: pupil could not speak in any language, not even Russian. But ignorance
  75. Accepted, line 11210: shabby cloak and packed him off to Russia, third class. It would seem
  76. Accepted, line 11262: children of Russian merchants at ten copecks a lesson, especially with
  77. Accepted, line 11587: speak and understand Russian, though),--but now I can appreciate what I
  78. Accepted, line 11796: well aware, has never been out of Russia.... It is too late to read the
  79. Accepted, line 11834: the greater part of his life out of Russia, returning at intervals for
  80. Accepted, line 13848: aristocratic family. True, Russians think more of influential friends
  81. Accepted, line 14060: conservatism; but I am attacking _Russian_ liberalism; and I attack it for
  82. Accepted, line 14061: the simple reason that a Russian liberal is not a Russian liberal, he is
  83. Accepted, line 14062: a non-Russian liberal. Show me a real Russian liberal, and Ill kiss him
  84. Accepted, line 14082: How, nothing that they have done is Russian?” asked Prince S.
  85. Accepted, line 14084: It may be Russian, but it is not national. Our liberals are not
  86. Accepted, line 14085: Russian, nor are our conservatives, and you may be sure that the nation
  87. Accepted, line 14098: certainly do hold that Russian literature is not Russian, except perhaps
  88. Accepted, line 14108: really national. If any Russian shall have done or said anything really
  89. Accepted, line 14110: though he may not be able to talk the Russian language; still he is a
  90. Accepted, line 14111: national Russian. I consider that an axiom. But we were not speaking
  91. Accepted, line 14113: I insist that there does not exist one single Russian socialist. There
  92. Accepted, line 14145: fact is expressed the whole essence of Russian liberalism of the sort
  93. Accepted, line 14151: consists in this, that _Russian_ liberalism is not an attack upon the
  94. Accepted, line 14154: Russian order of things, but on Russia itself. My Russian liberal
  95. Accepted, line 14155: goes so far as to reject Russia; that is, he hates and strikes his own
  96. Accepted, line 14157: mirth, and even with ecstasy. He hates the national customs, Russian
  97. Accepted, line 14159: not know what he is doing, and believes that his hatred of Russia is the
  98. Accepted, line 14163: aware of the fact.) This hatred for Russia has been mistaken by some of
  99. Accepted, line 14164: our Russian liberals for sincere love of their country, and they
  100. Accepted, line 14175: my original statement that a Russian liberal is _not_ a _Russian_
  101. Accepted, line 14190: more or less right, and that Russian liberalism--that phase of it which
  102. Accepted, line 14192: Russia itself, and not only its existing order of things in general. Of
  103. Accepted, line 14291: than the exception, unfortunately for Russia. So much so, that if this
  104. Accepted, line 14297: times, and not only here in Russia, but everywhere else as well. And in
  105. Accepted, line 17363: the criminals, all over Russia and Siberia, knew him!
  106. Accepted, line 17473: Russian); so that maybe he was not so far from my final conviction as
  107. Accepted, line 19243: uniform [Civil Service clerks in Russia wear uniform.]--you must have
  108. Accepted, line 20980: being full of self-respect, in which quality the ordinary Russian is so
  109. Accepted, line 21508: strange disclosures is to be gained the full knowledge of Russian life
  110. Accepted, line 21535: To this keen question I replied as keenly, The Russian heart can
  111. Accepted, line 21539: his suite: I like that boys pride; if all Russians think like this
  112. Accepted, line 21621: the Russians, and he would have forgotten all about me had he not loved
  113. Accepted, line 21643: “‘Child,’ he said, abruptly. If I were to recognize the Russian
  114. Accepted, line 21644: orthodox religion and emancipate the serfs, do you think Russia would
  115. Accepted, line 21652: fiat of the Russian people. Enough, Davoust, it is mere phantasy on our
  116. Accepted, line 21990: no one knew what the position of a respectable person in Russia would
  117. Accepted, line 22879: Russia, or about Beauty redeeming the world, or anything of that sort,
  118. Accepted, line 23292: of those Olympian administrators who know everything except Russia,
  119. Accepted, line 23335: a poet, German by name, but a Russian poet; very presentable, and even
  120. Accepted, line 23340: Russian verse, and claimed to have been a friend of a famous Russian
  121. Accepted, line 23696: Russian civilization to _them_, we must stand before them, not letting it
  122. Accepted, line 23730: them. We Russians no sooner arrive at the brink of the water, and
  123. Accepted, line 23737: Our Russian intensity not only astonishes ourselves; all Europe wonders
  124. Accepted, line 23746: of vanity that Russians become Atheists and Jesuits! But from spiritual
  125. Accepted, line 23749: never knew it. It is easier for a Russian to become an Atheist, than for
  126. Accepted, line 23750: any other nationality in the world. And not only does a Russian become
  127. Accepted, line 23760: But let these thirsty Russian souls find, like Columbus discoverers, a
  128. Accepted, line 23761: new world; let them find the Russian world, let them search and discover
  129. Accepted, line 23763: Show them the restitution of lost humanity, in the future, by Russian
  130. Accepted, line 23764: thought alone, and by means of the God and of the Christ of our Russian
  131. Accepted, line 23980: stratum of Russian society is _worthless_, has outlived its time, has
  132. Accepted, line 24001: me persons who can understand, who can forgive--kind, good Russian
  133. Accepted, line 24007: among us--it may be the order elsewhere, but not in Russia. Surely you
  134. Accepted, line 25077: hardly talk Russian, but had fallen in love with one of the Miss
  135. Accepted, line 25333: in Switzerland, for your home-country, for Russia; you read, doubtless,
  136. Accepted, line 25334: many books about Russia, excellent books, I dare say, but hurtful to
  137. Accepted, line 25579: to Lebedeff that this was the first time he had ever heard a Russian
  138. Accepted, line 25756: his life--abroad, if necessary. There are Russian priests everywhere,
  139. Accepted, line 26839: in Russia, visits his sick friend at Schneiders every few months.
  140. Accepted, line 26916: Ive had a good Russian cry over this poor fellow,” she added, pointing