X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=src%2Fparse.dcl;h=55d8a95c35005ac3126ee472c9489bfb18d789ba;hb=3d1c57710eb0b86f13df392f03131157aec22c21;hp=62a0461c89c42021bedd72288bbdf7bb16bdd887;hpb=4c779c9791b03d96a76956e314cbc95f056448ce;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