Closed nojaf closed 1 year ago
The assumption now is that each rule does return a token type, which does seem to be the case in the compiler.
Could you clarify this please, e.g. link to the relevant line where this assumption is made? It's not always necessaryily the case that there's a token type when using fslex.
@dsyme right now every *.fsl
returns a token
type (defined in the *.fsy
counterpart).
Alternatively, an actual return type should be allowed for a rule as well in the grammar.
@dsyme right now every .fslreturns a token type (defined in the .fsy counterpart).
OK, well, I guess it's OK :)
I would like to have signature files for
*.fsl
files as well.See the example at https://github.com/dotnet/fsharp/pull/15182.
I've made the following changes:
LPAREN IDENT COLON IDENT RPAREN
as a function parameter. Because of this, people can specify a type (assuming it is a simple one) that we can use in the signature file.The assumption now is that each rule does return a
token
type, which does seem to be the case in the compiler.