Skip to content

Commit

Permalink
data/Language/Flow.yaml: Add Flow definition
Browse files Browse the repository at this point in the history
This adds definition of Flow, a static type checker for JS.

Closes coala#51
  • Loading branch information
utkarsh2102 committed Dec 12, 2018
1 parent 24801c2 commit 6a22f54
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/DataType/boolean_flow.yaml
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'
3 changes: 3 additions & 0 deletions data/DataType/null_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
keyword: null
integer-min: '0'
integer-max: '0'
4 changes: 4 additions & 0 deletions data/DataType/number_flow.yaml
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
4 changes: 4 additions & 0 deletions data/DataType/string_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: string
delimiters:
- single_quote
- double_quote
4 changes: 4 additions & 0 deletions data/DataType/void_flow.yaml
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
3 changes: 3 additions & 0 deletions data/Delimiter/curly_braces_pipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: block
start: '{|'
end: '|}'
1 change: 1 addition & 0 deletions data/LangDerived/js_flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: JavaScript
50 changes: 50 additions & 0 deletions data/Language/Flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
identifier: Flow
full_name: Flow
wikidata: Q59413589
creation_date: 2014
extensions:
- js.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
1 change: 1 addition & 0 deletions models/LangDerived.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: String
1 change: 1 addition & 0 deletions models/Language.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ versions: String
grammar_file: String
aliases: Alias[]
extensions: FileExtension[]
language_derivative: LangDerived[]
line_continuation: LineCont[]
delimiters: Delimiter[]
datatypes: DataType[]
Expand Down

0 comments on commit 6a22f54

Please sign in to comment.