Skip to content

Commit

Permalink
Add Kotlin language
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy4h committed Nov 23, 2018
1 parent 12cabec commit 541db7d
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/DataType/byte_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: byte
integer-min: '-128'
integer-max: '127'
integer-signed: true
4 changes: 4 additions & 0 deletions data/DataType/double_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: double
integer-min: 'uncertain'
integer-max: 'uncertain'
integer-signed: true
4 changes: 4 additions & 0 deletions data/DataType/float_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: float
integer-min: 'uncertain'
integer-max: 'uncertain'
integer-signed: true
4 changes: 4 additions & 0 deletions data/DataType/int_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: int
integer-min: '-2147483648'
integer-max: '2147483647'
integer-signed: true
4 changes: 4 additions & 0 deletions data/DataType/long_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: long
integer-min: '-9223372036854775808'
integer-max: '9223372036854775807'
integer-signed: true
4 changes: 4 additions & 0 deletions data/DataType/short_kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keyword: short
integer-min: '-32768'
integer-max: '32767'
integer-signed: true
5 changes: 5 additions & 0 deletions data/Delimiter/kotlin_char.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: string
start: "'"
end: "'"
escape: \
length: 1
96 changes: 96 additions & 0 deletions data/Language/Kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
identifier: Kotlin
wikidata: Q3816639
grammar_file: https://github.com/antlr/grammars-v4/tree/master/kotlin
extensions:
- kt
- ktm
- kts
delimiters:
# comment delimiters
- double_slash
- multiline_slash_star
# string delimiters
- kotlin_char
- double_quote_slash_escape
- curly_braces
datatypes:
- bool_title_case
- byte_kotlin
- short_kotlin
- int_kotlin
- long_kotlin
- float_kotlin
- double_kotlin
keywords:
- abstract
- actual
- annotation
- as
- break
- by
- catch
- class
- companion
- const
- constructor
- continue
- crossinline
- data
- delegate
- do
- dynamic
- else
- enum
- expect
- external
- field
- file
- final
- finally
- for
- fun
- get
- if
- import
- in
- infix
- init
- inline
- inner
- interface
- internal
- is
- it
- lateinit
- noinline
- null
- object
- open
- operator
- out
- override
- package
- param
- private
- property
- protected
- public
- receiveris
- reified
- return
- sealed
- set
- setparam
- super
- suspend
- tailrec
- this
- throw
- try
- typealias
- val
- var
- vararg
- when
- where
- while

0 comments on commit 541db7d

Please sign in to comment.