aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-01-03 16:57:27 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-01-03 16:57:27 +0100
commit97439a371308d0ed31acd0d79bc44248bb6a1d0f (patch)
tree0a025403b9a9625a328faead6fc9b630c43246b3
parent4cc9c27d51073acffd750e3c4298cdab9bdd4c2f (diff)
downloadPraspel-97439a371308d0ed31acd0d79bc44248bb6a1d0f.zip
Praspel-97439a371308d0ed31acd0d79bc44248bb6a1d0f.tar.gz
Praspel-97439a371308d0ed31acd0d79bc44248bb6a1d0f.tar.bz2
The @description clause can be present anywhere.
-rw-r--r--Grammar.pp12
-rw-r--r--Model/Behavior.php3
2 files changed, 9 insertions, 6 deletions
diff --git a/Grammar.pp b/Grammar.pp
index 29d5483..7682398 100644
--- a/Grammar.pp
+++ b/Grammar.pp
@@ -159,17 +159,19 @@ behavior_content:
)
::semicolon::+
| ( behavior() ::semicolon::* )+ default()? ::semicolon::*
+ | description() ::semicolon::*
)+
::_brace:: #behavior
#default:
::at_default:: ::brace_::
(
- (
- ensures()
- | throwable()
- )
- ::semicolon::+
+ (
+ ensures()
+ | throwable()
+ )
+ ::semicolon::+
+ | description() ::semicolon::*
)+
::_brace::
diff --git a/Model/Behavior.php b/Model/Behavior.php
index 0b25e42..7a587bb 100644
--- a/Model/Behavior.php
+++ b/Model/Behavior.php
@@ -121,7 +121,8 @@ class Behavior extends Clause {
'behavior',
'default',
'ensures',
- 'throwable'
+ 'throwable',
+ 'description'
);
/**