Skip to content

Commit

Permalink
Merge pull request #209 from LPCIC/gares-patch-2
Browse files Browse the repository at this point in the history
Update ELPI.md
  • Loading branch information
gares authored Nov 27, 2023
2 parents 80a3945 + fe714f4 commit dc6dd54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ELPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,14 @@ macro @name Args :- Body.
It is expanded everywhere (even in type declarations)
at compilation time.
#### Example: literlas
```prolog
macro @path :- ["home","gares","elpi"].

main :- print @path.
```
#### Example: factor hypothetical clauses.
```prolog
macro @of X N T :- (of X T, pp X N).
Expand Down

0 comments on commit dc6dd54

Please sign in to comment.