From: Francis Russell Date: Tue, 1 May 2012 14:00:56 +0000 (+0100) Subject: Initial FunctionSignature implementation. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5f958b7c1170343f849cc6ee33a0cdd97e0a5083;p=francis%2Fofc.git Initial FunctionSignature implementation. --- diff --git a/src/ofc/codegen/FunctionSignature.scala b/src/ofc/codegen/FunctionSignature.scala new file mode 100644 index 0000000..427c7b5 --- /dev/null +++ b/src/ofc/codegen/FunctionSignature.scala @@ -0,0 +1,11 @@ +package ofc.codegen + +trait FunctionSignature[R <: Type] { + def getName: String +} + +class FortranFunctionSignature[R <: Type](name: String, + returnType: R, params: Seq[(String, Type)]) extends FunctionSignature[R] { + + def getName = name +}