Go to file
Benjamin Loison dcf7320c0d Add one-line comment support and make some semi-column optional
Make possible the parsing of the counting example of *Clock-directed Modular Code Generation for Synchronous Data-flow Languages* (https://www.di.ens.fr/~pouzet/bib/lctes08a.pdf).

```
-- count the number of top between two tick
node counting (tick:bool; top:bool)
returns (o: int)
var v: int;
let o = if tick then v else 0 -> pre o + v;
    v = if top then 1 else 0;
tel;
```

The one-line comment rule was inspired from https://mukulrathi.com/create-your-own-programming-language/parsing-ocamllex-menhir/. Note their typo using `single_line_comment` instead of `read_single_line_comment`.
2022-12-10 01:58:09 +01:00
src Add one-line comment support and make some semi-column optional 2022-12-10 01:58:09 +01:00
.gitignore [cleaning] 2022-12-08 14:34:50 +01:00
Makefile [parser] parses and dumps content (without expressions) 2022-12-07 16:45:55 +01:00
README.md README 2022-12-04 16:19:25 +01:00
TODO [parser] adding support for expressions 2022-12-07 21:56:38 +01:00