Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 1.91 KB
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><!--bool, int, real, str-->
<bgf:production><nonterminal>bool</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>arbBool</selector><bgf:expression><epsilon /></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fromString</selector><bgf:expression><marked><mark>s</mark><bgf:expression><nonterminal>str</nonterminal></bgf:expression></marked></bgf:expression></selectable></bgf:expression><bgf:expression><value>boolean</value></bgf:expression></choice></bgf:expression>
</bgf:production><bgf:production><nonterminal>int</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>toInt</selector><bgf:expression><marked><mark>b</mark><bgf:expression><nonterminal>bool</nonterminal></bgf:expression></marked></bgf:expression></selectable></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression>
</bgf:production><bgf:production><nonterminal>real</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>toReal</selector><bgf:expression><marked><mark>b</mark><bgf:expression><nonterminal>bool</nonterminal></bgf:expression></marked></bgf:expression></selectable></bgf:expression><bgf:expression><sequence><bgf:expression><value>int</value></bgf:expression><bgf:expression><terminal>.</terminal></bgf:expression><bgf:expression><value>int</value></bgf:expression></sequence></bgf:expression></choice></bgf:expression>
</bgf:production><bgf:production><nonterminal>str</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>toString</selector><bgf:expression><marked><mark>b</mark><bgf:expression><nonterminal>bool</nonterminal></bgf:expression></marked></bgf:expression></selectable></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression>
</bgf:production></bgf:grammar>