forked from GitHub/gf-core
added test grammar for literals in the testsuite
This commit is contained in:
9
testsuite/runtime/parser/LiteralsCnc.gf
Normal file
9
testsuite/runtime/parser/LiteralsCnc.gf
Normal file
@@ -0,0 +1,9 @@
|
||||
concrete LiteralsCnc of Literals = {
|
||||
|
||||
lincat S = Str ;
|
||||
|
||||
lin IsString x = x.s ++ "is string" ;
|
||||
lin IsInteger x = x.s ++ "is integer" ;
|
||||
lin IsFloat x = x.s ++ "is float" ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user