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 #51
  • Loading branch information
utkarsh2102 committed Dec 31, 2018
1 parent 9b62d85 commit 8884fa0
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/logos/Flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: '|}'
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
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
1 change: 1 addition & 0 deletions models/LangDerived.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# pk: 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 8884fa0

Please sign in to comment.