File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
HydraScript.Domain.Constants
HydraScript.Domain.FrontEnd/Parser Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,19 @@ public static IEnumerable<Dto> Stream
6363 Priority : 11 ) ;
6464
6565 yield return new (
66- Tag : "Print " ,
66+ Tag : "Output " ,
6767 Pattern : "[>]{3}" ,
6868 Priority : 12 ) ;
6969
70+ yield return new (
71+ Tag : "Input" ,
72+ Pattern : "[<]{3}" ,
73+ Priority : 13 ) ;
74+
7075 yield return new (
7176 Tag : "Operator" ,
7277 Pattern : "[+]{1,2}|[-]|[*]|[/]|[%]|([!]|[=])[=]|([<]|[>])[=]?|[!]|[|]{2}|[&]{2}|[~]|[:]{2}|[$]" ,
73- Priority : 13 ) ;
78+ Priority : 14 ) ;
7479
7580 yield return new (
7681 Tag : "Comma" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Statement -> BlockStatement
1111 BreakStatement
1212 ReturnStatement
1313 OutputStatement
14+ InputStatement
1415
1516Declaration -> LexicalDeclaration
1617 FunctionDeclaration
@@ -68,6 +69,7 @@ BreakStatement -> 'break'
6869ReturnStatement -> 'return' Expression?
6970
7071OutputStatement -> '>>>' Expression
72+ InputStatement -> '<<<' (Ident | EnvVar)
7173
7274TypeDeclaration -> 'type' "Ident" = TypeValue
7375TypeValue -> TypeValueBase TypeValueSuffix*
You can’t perform that action at this time.
0 commit comments