mirror of https://github.com/XAMPPRocky/tokei
Add Alloy language (#541)
Alloy is an open source language and analyzer for software modeling. Homepage: http://alloytools.org/
This commit is contained in:
parent
ee19d28195
commit
156e7b7dc9
|
|
@ -24,6 +24,11 @@
|
|||
"multi_line_comments": [["{-", "-}"]],
|
||||
"extensions": ["agda"]
|
||||
},
|
||||
"Alloy": {
|
||||
"line_comment": ["--", "//"],
|
||||
"multi_line_comments": [["/*", "*/"]],
|
||||
"extensions": ["als"]
|
||||
},
|
||||
"Arduino": {
|
||||
"name": "Arduino C++",
|
||||
"line_comment": ["//"],
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
// 18 lines 10 code 3 comments 5 blanks
|
||||
|
||||
sig Node {
|
||||
edge: set Node
|
||||
}
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
pred self_loop[n: Node] {
|
||||
n in n.edge
|
||||
}
|
||||
|
||||
pred all_self_loop {
|
||||
all n: Node | self_loop[n]
|
||||
}
|
||||
|
||||
/* Comments started by /* don't nest */
|
||||
run all_self_loop
|
||||
Loading…
Reference in New Issue