| Index: lib/src/prism/tests/languages/vhdl/function_feature.test
|
| diff --git a/lib/src/prism/tests/languages/vhdl/function_feature.test b/lib/src/prism/tests/languages/vhdl/function_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d4af875eeddf1d027dd02be5981eaa6d2733b80a
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/vhdl/function_feature.test
|
| @@ -0,0 +1,29 @@
|
| +Bit_vector(7 downto 0)
|
| +DataBus(7)
|
| +function BOOL_TO_SL(X : boolean)
|
| +function "*"(a : resistance; b : capacitance)
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["function", "Bit_vector"],
|
| + ["punctuation", "("], ["number", "7"],
|
| + ["keyword", "downto"], ["number", "0"], ["punctuation", ")"],
|
| +
|
| + ["function", "DataBus"],
|
| + ["punctuation", "("], ["number", "7"], ["punctuation", ")"],
|
| +
|
| + ["keyword", "function"], ["function", "BOOL_TO_SL"],
|
| + ["punctuation", "("], "X ",
|
| + ["punctuation", ":"], " boolean", ["punctuation", ")"],
|
| +
|
| + ["keyword", "function"], ["quoted-function", "\"*\""],
|
| + ["punctuation", "("], "a ",
|
| + ["punctuation", ":"], " resistance",
|
| + ["punctuation", ";"], " b ",
|
| + ["punctuation", ":"], " capacitance", ["punctuation", ")"]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for functions and operator overloading.
|
|
|