Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use byte.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use double_c.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use float_c.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use int.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use long2E63.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use short.yaml

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use c_char.yaml.

start: "'"
end: "'"
escape: \
length: 1
98 changes: 98 additions & 0 deletions data/Language/Kotlin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
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
- square_braces
- round_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