2020-01-25 00:35:14 +03:00
|
|
|
### Transcript parser operations
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` ucm :hide
|
2024-07-03 00:42:07 +03:00
|
|
|
scratch/main> builtins.merge
|
2020-02-13 18:59:53 +03:00
|
|
|
```
|
|
|
|
|
2020-01-25 00:35:14 +03:00
|
|
|
The transcript parser is meant to parse `ucm` and `unison` blocks.
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` unison
|
2020-01-25 00:35:14 +03:00
|
|
|
x = 1
|
|
|
|
```
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` ucm
|
2024-07-03 00:42:07 +03:00
|
|
|
scratch/main> add
|
2020-01-25 00:35:14 +03:00
|
|
|
```
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` unison :hide:error:scratch.u
|
2020-01-25 00:35:14 +03:00
|
|
|
z
|
|
|
|
```
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` ucm :error
|
2024-07-03 00:42:07 +03:00
|
|
|
scratch/main> delete foo
|
2020-01-25 00:35:14 +03:00
|
|
|
```
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` ucm :error
|
2024-07-03 00:42:07 +03:00
|
|
|
scratch/main> delete lineToken.call
|
2020-01-25 00:46:30 +03:00
|
|
|
```
|
|
|
|
|
2020-01-25 00:35:14 +03:00
|
|
|
However handling of blocks of other languages should be supported.
|
|
|
|
|
|
|
|
```python
|
|
|
|
some python code
|
|
|
|
```
|
|
|
|
|
|
|
|
```c_cpp
|
|
|
|
some C++ code
|
|
|
|
```
|
|
|
|
|
|
|
|
```c9search
|
|
|
|
some cloud9 code
|
2020-02-13 18:59:53 +03:00
|
|
|
```
|