Jump to content

Conjugate a Latin verb: Difference between revisions

Add ed example
(Initial submission for Conjugate a Latin Verb)
(Add ed example)
 
Line 392:
.
</syntaxhighlight>
 
=={{header|ed}}==
 
Input file is supposed to have the infinitive verb as the only line.
 
<syntaxhighlight lang="sed">
H
p
t0
t0
t0
t0
t0
1s/(are|ere)$/o/
2s/are$/as/
3s/are$/at/
4s/are$/amus/
5s/are$/atis/
6s/are$/ant/
 
1s/ēre$/eo/
2s/ēre$/es/
3s/ēre$/et/
4s/ēre$/emus/
5s/ēre$/etis/
6s/ēre$/ent/
 
1s/ire$/io/
6s/ire$/iunt/
6s/ere$/unt/
 
2s/(ere|ire)$/is/
3s/(ere|ire)$/it/
4s/(ere|ire)$/imus/
5s/(ere|ire)$/itis/
,p
Q
</syntaxhighlight>
 
{{out}}
 
<pre>$ cat roman-conjugations.ed | ed -lEGs roman-conjugations.input
Newline appended
amare
...
amo
amas
amat
amamus
amatis
amant</pre>
 
=={{header|EMal}}==
110

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.