Last change
on this file since 2900 was
2900,
checked in by yura, 14 years ago
|
- Compilation to JBC is fixed.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
486 bytes
|
Line | |
---|
1 | $use StdIO; |
---|
2 | |
---|
3 | $func Fact e.N = t.F; |
---|
4 | |
---|
5 | Main = |
---|
6 | <PrintLn <Fact 'III'>>; |
---|
7 | // <Fact 'IIIIIIII'> : e; |
---|
8 | |
---|
9 | Fact e.N = |
---|
10 | e.N () $iter { |
---|
11 | e.N : e.N_1 t, |
---|
12 | e.N_1 t.Fact $iter { |
---|
13 | e.M : e.M_1 t, |
---|
14 | t.Mul t.Fact $iter { |
---|
15 | e.Mul : (e.Mul_1), |
---|
16 | e.Mul_1 (t.Fact); |
---|
17 | } :: e.Mul t.Fact, |
---|
18 | e.Mul : /*empty*/ = |
---|
19 | e.M_1 t.Fact; |
---|
20 | } :: e.M t.Mul, |
---|
21 | e.M : /*empty*/ = |
---|
22 | e.N_1 t.Mul; |
---|
23 | } :: e.N t.Fact, |
---|
24 | e.N : /*empty*/ = |
---|
25 | t.Fact; |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.