Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for emit https://esolangs.org/wiki/EmiT #559

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Elixir (ex,exs)
Elm (elm)
Emacs Dev Env (ede)
Emacs Lisp (el)
EmiT (emit)
Erlang (erl,hrl)
Expect (exp)
Extensible Stylesheet Language Transformations (xslt,xsl)
Expand Down
34 changes: 17 additions & 17 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<th>447</th>
<th>7673</th>
<th>1413</th>
<th>255539</th>
<th>4128</th>
<th>255541</th>
<th>4129</th>
</tr><tr>
<td>processor/workers_test.go</td>
<td></td>
Expand Down Expand Up @@ -198,8 +198,8 @@
<td>3</td>
<td>78</td>
<td>17</td>
<td>2024</td>
<td>52</td>
<td>2030</td>
<td>53</td>
</tr><tr>
<td>processor/structs_test.go</td>
<td></td>
Expand Down Expand Up @@ -240,16 +240,6 @@
<td>0</td>
<td>2209</td>
<td>35</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
<td>37</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>686</td>
<td>23</td>
</tr><tr>
<td>processor/bloom.go</td>
<td></td>
Expand All @@ -260,6 +250,16 @@
<td>2</td>
<td>1062</td>
<td>29</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
<td>37</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>686</td>
<td>23</td>
</tr><tr>
<td>processor/helpers_test.go</td>
<td></td>
Expand Down Expand Up @@ -288,7 +288,7 @@
<td>1</td>
<td>4</td>
<td>0</td>
<td>22971</td>
<td>22967</td>
<td>6</td>
</tr></tbody>
<tfoot><tr>
Expand All @@ -299,8 +299,8 @@
<th>447</th>
<th>7673</th>
<th>1413</th>
<th>255539</th>
<th>4128</th>
<th>255541</th>
<th>4129</th>
</tr>
<tr>
<th colspan="9">Estimated Cost to Develop (organic) $229,513<br>Estimated Schedule Effort (organic) 7.86 months<br>Estimated People Required (organic) 2.59<br></th>
Expand Down
23 changes: 23 additions & 0 deletions examples/language/emit.emit
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// emit program
create x = 10;

x = x - 3;

create y;

time strike;

y kills x;

create traveler;

print(x); //timeline 1 - nothing since x is dead. timeline 2 - prints 7 since traveler stopped x from being killed.

if(x is dead){

traveler warps strike{
traveler kills y;
traveler kills traveler; //kill self, preventing paradoxes by interfering with itself
};

};
159 changes: 91 additions & 68 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,29 @@
"multi_line": [],
"quotes": []
},
"EmiT": {
"complexitychecks": [
"if ",
"if(",
"warp ",
"time ",
"kills ",
"collapse ",
"|| ",
"&& ",
"!= ",
"== "
],
"extensions": ["emit"],
"line_comment": ["//"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Erlang": {
"complexitychecks": [
"for ",
Expand Down Expand Up @@ -5489,6 +5512,47 @@
"multi_line": [],
"quotes": []
},
"SPL": {
"complexitychecks": [
"construct",
"foreach",
"map",
"while",
"if",
"include",
"catch",
"and",
"or",
"not",
"call",
"<|",
"<{",
"dup",
"swap"
],
"extensions": ["spl"],
"line_comment": [],
"multi_line": [["\"", "\";"]],
"quotes": [
{
"end": "\"",
"start": "\""
},
{
"end": " ",
"start": "^"
},
{
"end": ">",
"start": "^"
},
{
"end": ":",
"start": "^"
}
],
"shebangs": ["spl"]
},
"SQL": {
"complexitychecks": [
"for ",
Expand Down Expand Up @@ -6570,31 +6634,36 @@
}
]
},
"Ur/Web": {
"Up": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"switch ",
"while ",
"else ",
"try ",
"func ",
"up ",
"|| ",
"&& ",
"!= ",
"== "
],
"extensions": ["ur", "urs"],
"line_comment": [],
"multi_line": [["(*", "*)"]],
"extensions": ["up"],
"line_comment": ["//"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
},
{
"end": "`",
"start": "`"
}
]
},
"Ur/Web Project": {
"Ur/Web": {
"complexitychecks": [
"for ",
"for(",
Expand All @@ -6608,39 +6677,34 @@
"!= ",
"== "
],
"extensions": ["urp"],
"line_comment": ["#"],
"multi_line": [],
"quotes": []
"extensions": ["ur", "urs"],
"line_comment": [],
"multi_line": [["(*", "*)"]],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Up": {
"Ur/Web Project": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"switch ",
"while ",
"else ",
"try ",
"func ",
"up ",
"|| ",
"&& ",
"!= ",
"== "
],
"extensions": ["up"],
"line_comment": ["//"],
"extensions": ["urp"],
"line_comment": ["#"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
},
{
"end": "`",
"start": "`"
}
]
"quotes": []
},
"V": {
"complexitychecks": [
Expand Down Expand Up @@ -7514,46 +7578,5 @@
"start": "」」"
}
]
},
"SPL": {
"complexitychecks": [
"construct",
"foreach",
"map",
"while",
"if",
"include",
"catch",
"and",
"or",
"not",
"call",
"<|",
"<{",
"dup",
"swap"
],
"extensions": ["spl"],
"line_comment": [],
"multi_line": [["\"", "\";"]],
"quotes": [
{
"end": "\"",
"start": "\""
},
{
"end": " ",
"start": "^"
},
{
"end": ">",
"start": "^"
},
{
"end": ":",
"start": "^"
}
],
"shebangs": ["spl"]
}
}
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ specificLanguages=(
'Dockerfile '
'DOT '
'Elm '
'EmiT '
'F# '
'Factor '
'Flow9 '
Expand Down
Loading