Advertisement
Guest User

Untitled

a guest
Jul 5th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. $ cat /tmp/test-1.dix
  2. <dictionary>
  3. <alphabet>емс</alphabet>
  4. <sdefs>
  5. <sdef n="n"/>
  6. <sdef n="cop"/>
  7. <sdef n="lpar"/>
  8. <sdef n="rpar"/>
  9. </sdefs>
  10. <section id="main" type="standard">
  11. <e><p><l>емес</l><r>е<s n="cop"/></r></p></e>
  12. <e><p><l>(</l><r>(<s n="lpar"/></r></p></e>
  13. <e><p><l>)</l><r>)<s n="rpar"/></r></p></e>
  14. </section>
  15. </dictionary>
  16.  
  17. $ lt-print /tmp/test-1.bin
  18. 0 1 ( (
  19. 0 2 ) )
  20. 0 3 е е
  21. 1 4 ε <lpar>
  22. 2 4 ε <rpar>
  23. 3 5 м <cop>
  24. 5 6 е ε
  25. 6 4 с ε
  26. 4
  27.  
  28. $ echo "(емес)" | lt-proc /tmp/test.bin
  29. (^емес/е<cop>$^)/)<rpar>$
  30.  
  31. ==================================================================================================
  32.  
  33. $ cat /tmp/test-2.dix
  34. <dictionary>
  35. <alphabet>емс</alphabet>
  36. <sdefs>
  37. <sdef n="n"/>
  38. <sdef n="cop"/>
  39. <sdef n="lpar"/>
  40. <sdef n="rpar"/>
  41. </sdefs>
  42. <section id="main" type="standard">
  43. <e><p><l>емес</l><r>е<s n="cop"/></r></p></e>
  44. </section>
  45. <section id="final" type="inconditional">
  46. <e><p><l>(</l><r>(<s n="lpar"/></r></p></e>
  47. <e><p><l>)</l><r>)<s n="rpar"/></r></p></e>
  48. </section>
  49. </dictionary>
  50.  
  51. $ lt-print /tmp/test-2.bin
  52. 0 1 ( (
  53. 0 2 ) )
  54. 1 3 ε <lpar>
  55. 2 3 ε <rpar>
  56. 3
  57. --
  58. 0 1 е е
  59. 1 2 м <cop>
  60. 2 3 е ε
  61. 3 4 с ε
  62. 4
  63.  
  64. $ echo "(емес)" | lt-proc /tmp/test.bin
  65. ^(/(<lpar>$^емес/е<cop>$^)/)<rpar>$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement