
* Reverted [pos.mli] to the previous signature, except [Pos.min] that now takes a labelled parameter [file]. * Reverted [ParserAPI.ml] to the previous signature. * Reexported [shor_error] in [ParserUnit]. * Changed the modules [LexToken] so that they export one function to make attributes, the first, additional paramater being "[@" or "[@@" (and invalid in PascaLIGO). * Added support in all [ParserLog] for attributes (pretty-printings). * Added AST nodes [Attr] and [AttrDecl] to PascaLIGO. The simplifier takes care of hooking them with their respective declarations or discarding them. (In the future, we should issue a warning for detached attributes.)
19 lines
238 B
Plaintext
19 lines
238 B
Plaintext
[@inline]
|
|
let x = 1;
|
|
|
|
[@inline]
|
|
let foo = (a: int): int => {
|
|
[@inline]
|
|
let test = 2 + a;
|
|
test;
|
|
};
|
|
|
|
[@inline][@other]
|
|
let y = 1;
|
|
|
|
let bar = (b: int): int => {
|
|
[@inline][@foo][@bar]
|
|
let test = (z: int) => 2 + b + z;
|
|
test(b);
|
|
};
|