X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=src%2Fparse.dcl;h=55d8a95c35005ac3126ee472c9489bfb18d789ba;hb=cdb033817c0b30f0ff27b0f4aa67b7cf93c36b4d;hp=62a0461c89c42021bedd72288bbdf7bb16bdd887;hpb=40d54a0715006e2baab1704eef15eecc4076668b;p=cc1516.git diff --git a/src/parse.dcl b/src/parse.dcl index 62a0461..55d8a95 100644 --- a/src/parse.dcl +++ b/src/parse.dcl @@ -32,7 +32,7 @@ import lex :: Op1 = UnNegation | UnMinus :: Op2 = BiPlus | BiMinus | BiTimes | BiDivide | BiMod | BiEquals | BiLesser | BiGreater | BiLesserEq | BiGreaterEq | BiUnEqual | BiAnd | BiOr | BiCons -:: FunDecl = FunDecl String [String] FunType [VarDecl] [Stmt] +:: FunDecl = FunDecl String [String] (Maybe FunType) [VarDecl] [Stmt] :: FunType = FunType [Type] (Maybe Type) :: FunCall = FunCall String [Expr] :: Stmt