(stream, c)
| 824 | |
| 825 | // eating and vomiting a part of stream from current position |
| 826 | function eatSuffix(stream, c){ |
| 827 | var x=stream.pos+c; |
| 828 | var y; |
| 829 | if(x<=0) |
| 830 | stream.pos=0; |
| 831 | else if(x>=(y=stream.string.length-1)) |
| 832 | stream.pos=y; |
| 833 | else |
| 834 | stream.pos=x; |
| 835 | } |
| 836 | |
| 837 | }); |