Skip to content

Commit

Permalink
new language teal
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Jul 27, 2022
1 parent 7ae175e commit 26e9012
Show file tree
Hide file tree
Showing 43 changed files with 254 additions and 182 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Systemd (automount,device,link,mount,path,scope,service,slice,socket,swap,target
SystemVerilog (sv,svh)
TaskPaper (taskpaper)
TCL (tcl)
Teal (teal)
Terraform (tf,tf.json)
TeX (tex,sty)
Thrift (thrift)
Expand Down
52 changes: 35 additions & 17 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th>441</th>
<th>7249</th>
<th>1494</th>
<th>363530</th>
<th>363898</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand All @@ -39,12 +39,12 @@
</tr><tr>
<th>Markdown</th>
<th>11</th>
<th>1360</th>
<th>1361</th>
<th>323</th>
<th>0</th>
<th>1037</th>
<th>1038</th>
<th>0</th>
<th>55700</th>
<th>55712</th>
</tr><tr>
<th>Python</th>
<th>10</th>
Expand Down Expand Up @@ -98,7 +98,7 @@
<th>86</th>
<th>890</th>
<th>101</th>
<th>40196</th>
<th>40237</th>
</tr><tr>
<th>C#</th>
<th>2</th>
Expand Down Expand Up @@ -126,6 +126,15 @@
<th>2</th>
<th>0</th>
<th>44</th>
</tr><tr>
<th>PHP</th>
<th>2</th>
<th>1</th>
<th>0</th>
<th>0</th>
<th>1</th>
<th>0</th>
<th>6</th>
</tr><tr>
<th>Plain Text</th>
<th>2</th>
Expand Down Expand Up @@ -399,21 +408,21 @@
</tr><tr>
<th>HTML</th>
<th>1</th>
<th>653</th>
<th>635</th>
<th>0</th>
<th>0</th>
<th>653</th>
<th>635</th>
<th>0</th>
<th>9539</th>
<th>9288</th>
</tr><tr>
<th>JSON</th>
<th>1</th>
<th>7656</th>
<th>7676</th>
<th>0</th>
<th>0</th>
<th>7656</th>
<th>7676</th>
<th>0</th>
<th>107168</th>
<th>107445</th>
</tr><tr>
<th>Korn Shell</th>
<th>1</th>
Expand Down Expand Up @@ -531,6 +540,15 @@
<th>6</th>
<th>0</th>
<th>126</th>
</tr><tr>
<th>Teal</th>
<th>1</th>
<th>15</th>
<th>0</th>
<th>6</th>
<th>9</th>
<th>2</th>
<th>213</th>
</tr><tr>
<th>Terraform</th>
<th>1</th>
Expand Down Expand Up @@ -624,12 +642,12 @@
</tr></tbody>
<tfoot><tr>
<th>Total</th>
<th>179</th>
<th>27938</th>
<th>182</th>
<th>27957</th>
<th>3105</th>
<th>1780</th>
<th>23053</th>
<th>2501</th>
<th>1844597</th>
<th>1786</th>
<th>23066</th>
<th>2503</th>
<th>1845263</th>
</tr></tfoot>
</table></body></html>
1 change: 1 addition & 0 deletions examples/issue323/a.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
Empty file added examples/issue323/b.php
Empty file.
15 changes: 15 additions & 0 deletions examples/language/teal.teal
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma version 4
// loop 1 - 10
// init loop var
int 0
loop:
int 1
+
dup
// implement loop code
// ...
// check upper bound
int 10
<=
bnz loop
// once the loop exits, the last counter value will be left on stack
20 changes: 20 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6418,6 +6418,26 @@
"multi_line": [],
"quotes": []
},
"Teal": {
"complexitychecks": [
"loop:",
"retsub",
"callsub ",
"&&",
"==",
"||",
"<=",
">="
],
"extensions": [
"teal"
],
"line_comment": [
"//"
],
"multi_line": [],
"quotes": []
},
"Terraform": {
"complexitychecks": [
"count",
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ else
fi

# Try out specific languages
for i in 'Bosque ' 'Flow9 ' 'Bitbucket Pipeline ' 'Docker ignore ' 'Q# ' 'Futhark ' 'Alloy ' 'Wren ' 'Monkey C ' 'Alchemist ' 'Luna ' 'ignore ' 'XML Schema ' 'Web Services' 'Go ' 'Java ' 'Boo ' 'License ' 'BASH ' 'C Shell ' 'Korn Shell ' 'Makefile ' 'Shell ' 'Zsh ' 'Rakefile ' 'Gemfile ' 'Dockerfile ' 'Yarn ' 'Sieve ' 'F# ' 'Elm ' 'Terraform ' 'Clojure ' 'C# ' 'LLVM IR ' 'HAML ' 'FXML ' 'DM ' 'Nushell ' 'Racket ' 'DOT ' 'YAML '
for i in 'Bosque ' 'Flow9 ' 'Bitbucket Pipeline ' 'Docker ignore ' 'Q# ' 'Futhark ' 'Alloy ' 'Wren ' 'Monkey C ' 'Alchemist ' 'Luna ' 'ignore ' 'XML Schema ' 'Web Services' 'Go ' 'Java ' 'Boo ' 'License ' 'BASH ' 'C Shell ' 'Korn Shell ' 'Makefile ' 'Shell ' 'Zsh ' 'Rakefile ' 'Gemfile ' 'Dockerfile ' 'Yarn ' 'Sieve ' 'F# ' 'Elm ' 'Terraform ' 'Clojure ' 'C# ' 'LLVM IR ' 'HAML ' 'FXML ' 'DM ' 'Nushell ' 'Racket ' 'DOT ' 'YAML ' 'Teal '
do
if ./scc "examples/language/" | grep -q "$i "; then
echo -e "${GREEN}PASSED $i Language Check"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/json-iterator/go/iter_skip_sloppy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/json-iterator/go/iter_skip_strict.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/mattn/go-runewidth/runewidth_js.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions vendor/github.com/mattn/go-runewidth/runewidth_posix.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/mattn/go-runewidth/runewidth_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/minio/blake2b-simd/compressAvx_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/minio/blake2b-simd/compressSse_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/minio/blake2b-simd/compress_noasm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/minio/blake2b-simd/cpuid.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/concurrent/go_above_19.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/concurrent/go_below_19.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/github.com/modern-go/concurrent/log.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/reflect2/go_above_17.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/reflect2/go_above_19.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/reflect2/go_below_17.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/modern-go/reflect2/go_below_19.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/github.com/modern-go/reflect2/reflect2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/spf13/cobra/command_notwin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/spf13/cobra/command_win.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 26e9012

Please sign in to comment.