Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » b3 DSL rev 10833
b3 DSL rev 10833 [message #493271] Sat, 24 October 2009 03:15 Go to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Hi, the b3 DSL is now checked in - revision 10833. It has lots of
changes, and there are several sample files under the testData directory.

In brief...

- JS Syntax introduced
- 'artifacts' and 'group' in favor of always using 'action'
- since 'action' was the only remaining "part", the keyword 'action' was
dropped.
- order of elements in an action is now fixed (properties, advice,
group, and layout).
- artifacts is now done with an action returning a layout
someAction { layout{ directory/file.txt; } return layout; }
- groups is now donw with an action returning a group
someAction { group{ a/b/1.0; a/c/2.0; } return group; }
- JS script may appear after the layout statement. Any (well 99.9% - see
earlier post) statement/expression can be used.
- Properties are now prefixed with $ (as in $target.platform) this to
differentiate between a sub property "platform" on a parent property
"target"

(Note - Documentation in the test file test2.b3 is only partially up to
date, and still has mostly silly syntax checks, and no real examples).

Regards
- henrik
Re: b3 DSL rev 10833 [message #493272 is a reply to message #493271] Sat, 24 October 2009 04:08 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Henrik Lindberg <henrik.lindberg@cloudsmith.com> wrote:
> - 'artifacts' and 'group' in favor of always using 'action'

Should have said "have been dropped in favor of"

--
- henrik
Re: b3 DSL rev 10833 [message #493305 is a reply to message #493272] Sat, 24 October 2009 15:42 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Forgot one more diff against Js. The b3 syntax in this rev limits
switch- cases to literal values. JS allows any expression.

--
- henrik
Re: b3 DSL rev 10833 [message #585131 is a reply to message #493271] Sat, 24 October 2009 04:08 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Henrik Lindberg <henrik.lindberg@cloudsmith.com> wrote:
> - 'artifacts' and 'group' in favor of always using 'action'

Should have said "have been dropped in favor of"

--
- henrik
Re: b3 DSL rev 10833 [message #585237 is a reply to message #493272] Sat, 24 October 2009 15:42 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Forgot one more diff against Js. The b3 syntax in this rev limits
switch- cases to literal values. JS allows any expression.

--
- henrik
Previous Topic:b3 DSL rev 10833
Next Topic:ja debugging
Goto Forum:
  


Current Time: Wed Oct 01 20:28:44 GMT 2014

Powered by FUDForum. Page generated in 0.01793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software