Skip to content

Commit

Permalink
(docs) line wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 11, 2024
1 parent ff9054a commit 98b1e5c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/docs/lips/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,12 @@ Instead of `Array::replace` you should use LIPS Scheme `replace` procedure that
```

### Regular Expressions
LIPS define regular expressions it uses native JavaScript regular expressions.
At first, the syntax looked like in JavaScript. It was problematic for the parser
so you were not able to put space after `/` to distinguish from divide procedure.
Later, the syntax was renamed into form that start with hash `#/[0-9]/`. The same
syntax is used by [Gauche](https://practical-scheme.net/gauche/man/gauche-refe/Regular-expressions.html) implementation. But LIPS supports more flags (same as JavaScript).
LIPS define regular expressions it uses native JavaScript regular expressions. At first, the syntax
looked like in JavaScript. It was problematic for the parser so you were not able to put space after
`/` to distinguish from divide procedure. Later, the syntax was renamed into form that start with
hash `#/[0-9]/`. The same syntax is used by
[Gauche](https://practical-scheme.net/gauche/man/gauche-refe/Regular-expressions.html)
implementation. But LIPS supports more flags (same as JavaScript).

### Vectors
In LIPS Scheme vectors are JavaScript arrays. So you can execute methods on them with `-->` macro:
Expand All @@ -628,8 +629,8 @@ In LIPS Scheme vectors are JavaScript arrays. So you can execute methods on them
```

### Object literals
In LIPS you can define object literals with `&`
[syntax extension](/docs/lips/extension#syntax-extensions):
In LIPS you can define object literals with `&` [syntax
extension](/docs/lips/extension#syntax-extensions):

```scheme
(define obj &(:name "Jack" :age 22))
Expand Down

0 comments on commit 98b1e5c

Please sign in to comment.