forked from coala/coAST
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data/Language/Flow.yaml: Add Flow definition
This adds definition of Flow, a static type checker for JS. Closes coala#51
- Loading branch information
1 parent
9b62d85
commit 8884fa0
Showing
10 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
keyword: boolean | ||
integer-min: '0' | ||
integer-max: '1' | ||
integer-signed: false | ||
literals: | ||
- 'true' | ||
- 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
keyword: null | ||
integer-min: '0' | ||
integer-max: '0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: number | ||
integer-min: 'uncertain' | ||
integer-max: 'uncertain' | ||
integer-signed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: string | ||
delimiters: | ||
- single_quote | ||
- double_quote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
keyword: void | ||
integer-min: '0' | ||
integer-max: '0' | ||
integer-signed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: block | ||
start: '{|' | ||
end: '|}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
identifier: Flow | ||
full_name: Flow | ||
creation_date: 2014 | ||
extensions: | ||
- flow | ||
language_derivative: | ||
- JavaScript | ||
line_continuation: | ||
- backslash | ||
delimiters: | ||
- double_slash | ||
- multiline_slash_star | ||
- single_quote_slash_escape | ||
- double_quote_slash_escape | ||
- curly_braces | ||
- round_braces | ||
- square_braces | ||
- backticks | ||
- curly_braces_pipe | ||
keywords: | ||
- declare | ||
- string | ||
- boolean | ||
- string | ||
- number | ||
- typeof | ||
- return | ||
- if | ||
- let | ||
- var | ||
- function | ||
- const | ||
- object | ||
- serialize | ||
- interface | ||
- implements | ||
- array | ||
- class | ||
- new | ||
- this | ||
- constructor | ||
- opaque | ||
- type | ||
- import | ||
datatypes: | ||
- boolean_flow | ||
- number_flow | ||
- string_flow | ||
- void_flow | ||
- null_flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# pk: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters