1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-03 09:41:10 +03:00
juvix/examples/milestone
Jan Mas Rovira b7b0e1039e
Store source location of (almost) everything (#2174)
- Closes #2162 

This pr improves formatting of source files with comments.
The concrete ast now stores location information of almost all keywords.
We do not store location information of parentheses. Comments will be
pushed out of parentheses by the formatter.
E.g.
```
( -- comment
 f x)
```
will become
```
-- comment
(f x)
```

This only occurs if the comment appears just after the `(`. So the
following will be respected
```
(f --comment
x)
```

---------

Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no>
2023-06-07 19:57:51 +02:00
..
Bank Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
Collatz Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
Fibonacci Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
Hanoi Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
HelloWorld Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
PascalsTriangle Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
TicTacToe Store source location of (almost) everything (#2174) 2023-06-07 19:57:51 +02:00
Tutorial Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00