snoeathurc.h

This commit is contained in:
NikolajDanger
2022-05-18 17:29:24 +02:00
parent f0fda0bcd7
commit 5f7c450809
20 changed files with 6298 additions and 2039 deletions

View File

@ -1,6 +1,16 @@
// Signature file for parser generated by fsyacc
module Parser
type token =
| FILTER of (Position)
| SCAN of (Position)
| REPLICATE of (Position)
| BOOLVAL of (bool * Position)
| NOT of (Position)
| AND of (Position)
| OR of (Position)
| TIMES of (Position)
| DIVIDE of (Position)
| NUMNEG of (Position)
| LPAR of (Position)
| RPAR of (Position)
| LBRACKET of (Position)
@ -38,6 +48,16 @@ type token =
| CHARLIT of (char * Position)
| NUM of (int * Position)
type tokenId =
| TOKEN_FILTER
| TOKEN_SCAN
| TOKEN_REPLICATE
| TOKEN_BOOLVAL
| TOKEN_NOT
| TOKEN_AND
| TOKEN_OR
| TOKEN_TIMES
| TOKEN_DIVIDE
| TOKEN_NUMNEG
| TOKEN_LPAR
| TOKEN_RPAR
| TOKEN_LBRACKET
@ -85,6 +105,7 @@ type nonTerminalId =
| NONTERM_Params
| NONTERM_BinOp
| NONTERM_Exp
| NONTERM_MultiLet
| NONTERM_Exps
| NONTERM_FunArg
/// This function maps tokens to integer indexes