- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
parse: function() {
let c = dstack[dstack.length - 1];
c = c == ' ' ? '\\s' : s.replace(/[^\w\s]/g, '\\$&');
const regex = new RegExp('^[^' + c + ']*', 'g');
const match = regex.exec(rest_source);
dstack.push(match[0]);
rest_source = rest_source.slice(regex.lastIndex, rest_source.length);
output.push(match[0]);
},
word: function() {
let c = dstack[dstack.length - 1];
c = c == ' ' ? '\\s' : s.replace(/[^\w\s]/g, '\\$&');
const regex = new RegExp('^[' + c + ']*', 'g');
const match = regex.exec(rest_source);
rest_source = rest_source.slice(regex.lastIndex, rest_source.length);
output.push(match[0]);
words.parse();
},
name: function() {
dstack.push(' ');
words.word();
},
Я ещё могу перевести на «Паскаль»:
писа́ть — пи́сать;
кака́я — ка́кая.
Кто ещё вспомнит аналогичные пары?
Пары́ — па́ры.
Клещи́ — кле́щи.
по́мни —– помни́
Перевёл на S" Forth":
Перевёл на "Red":
Перевёл на Tcl:
Перевёл на "C":