#1-as praktinis darbas
#Uduotis Nr. 153 - AdobeInDesign Tagged text
#Kalbos sintaks BNF forma

<tagged_text> ::= {<tag> | <text>}
<tag> ::= <tag_start_symbol> <kind_of_tag> <tag_parametrs_separator> {<parametrs>} <tag_end_symbol>

<tag_start_symbol> ::= "<"

<kind_of_tag> :: = "pHyphenationLadderLimit" | "pHyphenationZone" | "pKeepParaTogether" | "pKeepFirstNLines" | "pKeepLastNLines" |
   "pFirstLinesIndent" | "pLeftIndent" | "pTabRuler" | pLastLineAlignment" | "pBodyAlignment" | "cTypeface" | "cLanguage" | "cFont" |
   "Nextstyle" | "Parastyle" | "DefineParaStyle" | "ColorTable" | <lt_letter> | <encoding> "-" <platform>
<lt_letter> ::= "0x" <hex_digit> <hex_digit> <hex_digit> <hex_digit>
<hex_digit> ::= <digit> | "A" .. "F"
<digit> :: = "0" .. "9"
<encoding> ::= "ASCII" | ANSI" | "Unicode" | "Big 5" | "SJIS"
<platform> ::= "WIN" | "MAC"
<tag_parametrs_separator> ::= ":"

<parametrs> ::= <style_name> | <color_name> | <alignment_name> | <typeface_name> | <language_name> | <font_name>
<style_name> ::= "Normal" # ir visi kiti galimi stiliai
<color_name> ::= "Black" | "White" #ir visos kitos galimos spalvos
<alignment_name> ::= "Left" | "Center" | "Right" | "Justify"
<typeface_name> ::= "Regular" | "Bold" | "Italic" | "Underlined"
<language_name> = "Neutral" | "English"
<font_name> = "MS Sans Serif" | "Arial" |"MS Serif"


<tag_end_symbol> :: = ">"

<text> ::= <char> {<char>}
<char> ::= <letter> | <digit> | <symbol>
<letter> ::= "a" .. "z" | "A" .. "Z"
<symbol> ::= .. (visi lik simboliai iskyrus "<" ":" ">")