-
Notifications
You must be signed in to change notification settings - Fork 24
/
grammar.bgf
2 lines (2 loc) · 4.03 KB
/
grammar.bgf
1
2
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><root>program</root><bgf:production><nonterminal>program</nonterminal><bgf:expression><star><bgf:expression><nonterminal>line</nonterminal></bgf:expression></star></bgf:expression></bgf:production><bgf:production><nonterminal>line</nonterminal><bgf:expression><choice><bgf:expression><nonterminal>ifdef</nonterminal></bgf:expression><bgf:expression><sequence><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>other_preprocessor_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression></sequence></bgf:expression><bgf:expression><sequence><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>any_other_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression></sequence></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>ifdef</nonterminal><bgf:expression><sequence><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>ifdef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression><bgf:expression><star><bgf:expression><nonterminal>line</nonterminal></bgf:expression></star></bgf:expression><bgf:expression><star><bgf:expression><nonterminal>elsif_part</nonterminal></bgf:expression></star></bgf:expression><bgf:expression><optional><bgf:expression><nonterminal>else_part</nonterminal></bgf:expression></optional></bgf:expression><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>endifdef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>elsif_part</nonterminal><bgf:expression><sequence><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>elsifdef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression><bgf:expression><star><bgf:expression><nonterminal>line</nonterminal></bgf:expression></star></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>else_part</nonterminal><bgf:expression><sequence><bgf:expression><optional><bgf:expression><terminal>//</terminal></bgf:expression></optional></bgf:expression><bgf:expression><nonterminal>elsedef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>newline</nonterminal></bgf:expression><bgf:expression><star><bgf:expression><nonterminal>line</nonterminal></bgf:expression></star></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>any_other_line</nonterminal><bgf:expression><star><bgf:expression><nonterminal>not_newline</nonterminal></bgf:expression></star></bgf:expression></bgf:production><bgf:production><nonterminal>not_newline</nonterminal><bgf:expression><choice><bgf:expression><nonterminal>long_comment</nonterminal></bgf:expression><bgf:expression><sequence><bgf:expression><nonterminal>token</nonterminal></bgf:expression></sequence></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>long_comment</nonterminal><bgf:expression><plus><bgf:expression><nonterminal>comment</nonterminal></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>ifdef_token</nonterminal><bgf:expression><choice><bgf:expression><nonterminal>ifdef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>elsedef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>elsifdef_line</nonterminal></bgf:expression><bgf:expression><nonterminal>endifdef_line</nonterminal></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>