---
title: BSL grammar
summary: The Xtext grammar of BSL as shipped in this release.
order: 900
---

# BSL grammar

The Xtext grammar the BIM Sequence Language parser is generated from, exactly as shipped in this release. Rules read top-down; `=>` marks a syntactic predicate, `+=` collects a list, `?=` a boolean flag. Terminals not declared here (`ID`, `STRING`, `INT`, comments) come from the common Xtext terminals; the languages that build on BQL inherit every rule from it.

```text {#grammar}
grammar nl.bimbase.bimworks.Bsl with nl.bimbase.bimworks.Bvl

generate bsl "http://www.bimbase.nl/bimworks/Bsl"

Bsl:
	frames += Frame ("," frames += Frame)*
;

Frame:
	"{"
	("label" label = STRING)?
	bvl = Bvl
	"}"
;
```
