Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support empty link syntax #42

Open
Konard opened this issue Oct 29, 2021 · 3 comments
Open

Support empty link syntax #42

Konard opened this issue Oct 29, 2021 · 3 comments

Comments

@Konard
Copy link
Member

Konard commented Oct 29, 2021

:

and

(:)

and

()

Should be supported.

All above expressions should be equivalent to either:

(1: 1 1)

or

(1: 0 0)

or

(0: 0 0)

For Doublets, (should be configurable by LiNo interpreters, not the parser).

@Konard Konard changed the title Support unique point links syntax Support undefined point links syntax Jan 21, 2022
@Konard Konard changed the title Support undefined point links syntax Support undefined link syntax Jan 21, 2022
@Konard
Copy link
Member Author

Konard commented Jan 21, 2022

It can be useful to build short sets or nested structures that just have the same root, no matter which root.

:
  1 2
  3 4

May be transformed to:

x: x x
x (1 2)
x (3 4)

This syntax conflicts with: #21

@Konard
Copy link
Member Author

Konard commented Dec 1, 2024

() is now supported, it is essentially empty link with no id and values. The same goes for (:) and :.

@Konard
Copy link
Member Author

Konard commented Dec 1, 2024

It can be useful to build short sets or nested structures that just have the same root, no matter which root.

:
  1 2
  3 4

May be transformed to:

x: x x
x (1 2)
x (3 4)

This syntax conflicts with: #21

I think it is better to use line that ends with : and indentation as it described in #21

@Konard Konard changed the title Support undefined link syntax Support empty link syntax Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant