Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Coding Style_v0.80.0

Marcin K Szczodrak edited this page Apr 19, 2014 · 1 revision

Swift Fox does not enforce any specific coding style.

However, a good practice seems to separate all lines of code with a single empty space, and keeping configuration's module names on separate, one tab intended lines.


configuration <conf_name> {
< tab >  <app_module_name>(<param>, <param>)
< tab >  <net_module_name>(<param>, <param>)
< tab >  <mac_module_name>(<param>, <param>)
< tab >  <radio_module_name>(<param>, <param>) }
<empty_line>
configuration ...

<empty_line>
state <state_name> { <configuration_name> ... }
state <state_name> { <configuration_name> ... }
<empty_line>
event ...
event ...
<empty_line>
from ...
from ...
<empty_line>
start <state_name>

Clone this wiki locally