Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat /tmp/test-1.dix
- <dictionary>
- <alphabet>емс</alphabet>
- <sdefs>
- <sdef n="n"/>
- <sdef n="cop"/>
- <sdef n="lpar"/>
- <sdef n="rpar"/>
- </sdefs>
- <section id="main" type="standard">
- <e><p><l>емес</l><r>е<s n="cop"/></r></p></e>
- <e><p><l>(</l><r>(<s n="lpar"/></r></p></e>
- <e><p><l>)</l><r>)<s n="rpar"/></r></p></e>
- </section>
- </dictionary>
- $ lt-print /tmp/test-1.bin
- 0 1 ( (
- 0 2 ) )
- 0 3 е е
- 1 4 ε <lpar>
- 2 4 ε <rpar>
- 3 5 м <cop>
- 5 6 е ε
- 6 4 с ε
- 4
- $ echo "(емес)" | lt-proc /tmp/test.bin
- (^емес/е<cop>$^)/)<rpar>$
- ==================================================================================================
- $ cat /tmp/test-2.dix
- <dictionary>
- <alphabet>емс</alphabet>
- <sdefs>
- <sdef n="n"/>
- <sdef n="cop"/>
- <sdef n="lpar"/>
- <sdef n="rpar"/>
- </sdefs>
- <section id="main" type="standard">
- <e><p><l>емес</l><r>е<s n="cop"/></r></p></e>
- </section>
- <section id="final" type="inconditional">
- <e><p><l>(</l><r>(<s n="lpar"/></r></p></e>
- <e><p><l>)</l><r>)<s n="rpar"/></r></p></e>
- </section>
- </dictionary>
- $ lt-print /tmp/test-2.bin
- 0 1 ( (
- 0 2 ) )
- 1 3 ε <lpar>
- 2 3 ε <rpar>
- 3
- --
- 0 1 е е
- 1 2 м <cop>
- 2 3 е ε
- 3 4 с ε
- 4
- $ echo "(емес)" | lt-proc /tmp/test.bin
- ^(/(<lpar>$^емес/е<cop>$^)/)<rpar>$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement