mirror of
https://github.com/Smaug123/WoofWare.PrattParser
synced 2025-10-10 20:08:39 +00:00
Fully generic
This commit is contained in:
@@ -27,7 +27,7 @@ module Example =
|
||||
| TokenType.RightBracket -> None
|
||||
|
||||
let parser =
|
||||
Parser.empty
|
||||
Parser.empty _.Type
|
||||
|> Parser.defineAtoms atom
|
||||
|> Parser.withUnaryPostfix TokenType.Factorial (7, ()) Expr.factorial
|
||||
|> Parser.withUnaryPrefix TokenType.Plus ((), 5) id
|
||||
|
Reference in New Issue
Block a user