Files
file start : Models Speech Word
class start : Word
comment line : ...
class end
file endnamespace Models.Speech
{
class Word
{
// ...
}
}class Word:
# ...Last updated
All the samples thus far have been isolated snippets of code. Some languages, particularly class-based ones, will have some scaffolding at the beginning and end of files. These lines are often dependent upon both the file name and/or path within a project.
The first line of every .bg file should be a file start, which takes any number of PascalCase folder names representing the file's path in its project, followed by the PascalCase file name.
The last line of every .bg file should be a file end.
file start : Models Speech Word
class start : Word
comment line : ...
class end
file endIn C#:
namespace Models.Speech
{
class Word
{
// ...
}
}In Python:
class Word:
# ...Note that because of Java, each file must export a construct with the same file's name. You can use any of:
class start : export to export a class
enum start : export to export an enum
interface start : export to export an interface
standalone functions declare start : export to export a standalone function group
Last updated