Improved language design
This commit is contained in:
parent
c909ce31d8
commit
62f8e86409
@ -18,6 +18,7 @@ class LanguageDefinition:
|
|||||||
Keywords.Length.value,
|
Keywords.Length.value,
|
||||||
Keywords.Range.value,
|
Keywords.Range.value,
|
||||||
Keywords.Exit.value,
|
Keywords.Exit.value,
|
||||||
|
Keywords.ForEach.value,
|
||||||
# normal keywords
|
# normal keywords
|
||||||
Keywords.If.value,
|
Keywords.If.value,
|
||||||
Keywords.ElseIf.value,
|
Keywords.ElseIf.value,
|
||||||
@ -28,6 +29,7 @@ class LanguageDefinition:
|
|||||||
# loops
|
# loops
|
||||||
Keywords.While.value,
|
Keywords.While.value,
|
||||||
Keywords.For.value,
|
Keywords.For.value,
|
||||||
|
Keywords.Foreach.value,
|
||||||
# access
|
# access
|
||||||
Keywords.Public.value,
|
Keywords.Public.value,
|
||||||
Keywords.This.value
|
Keywords.This.value
|
||||||
|
@ -16,6 +16,7 @@ class Keywords(Enum):
|
|||||||
Length = 'length'
|
Length = 'length'
|
||||||
Range = 'range'
|
Range = 'range'
|
||||||
Exit = 'exit'
|
Exit = 'exit'
|
||||||
|
ForEach = 'forEach'
|
||||||
|
|
||||||
# normal keywords
|
# normal keywords
|
||||||
If = 'if'
|
If = 'if'
|
||||||
@ -28,6 +29,7 @@ class Keywords(Enum):
|
|||||||
# loops
|
# loops
|
||||||
While = 'while'
|
While = 'while'
|
||||||
For = 'for'
|
For = 'for'
|
||||||
|
Foreach = 'foreach'
|
||||||
|
|
||||||
# access
|
# access
|
||||||
Public = 'public'
|
Public = 'public'
|
||||||
|
Loading…
Reference in New Issue
Block a user