Added ability to add commits the Kraken grammer file. Started work on class traits and else statements.

This commit is contained in:
Nathan Braswell
2014-07-06 23:42:25 -07:00
parent 91a68ac2b1
commit 46b9fc8b7f
8 changed files with 57 additions and 14 deletions

View File

@@ -7,8 +7,12 @@ type = type WS "\*" | "void" | "int" | "float" | "double" | "char" | identifier
template_inst = "<" WS type_list WS ">" ;
type_list = type_list WS "," WS type | type ;
template_dec = "template" WS "<" WS identifier_list WS ">" ;
identifier_list = identifier_list WS "," WS identifier | identifier ;
#What does that even mean?
#some
#
#
template_dec = "template" WS "<" WS template_param_list WS ">" ;
template_param_list = template_param_list WS "," WS identifier | identifier ;
import = "import" WS identifier WS ";" ;