class_docstr: SpecialSymbol(sym) is an RE which matches the special input
  symbol |sym|, which is one of BOL, EOL or EOF.
class_docstr_tok: ["SpecialSymbol","(","sym",")","is","an","RE","which","matches","the","special","input","symbol","|sym|",",","which","is","one","of","BOL",",","EOL","or","EOF","."]
code: def build_machine(
      self, m, initial_state, final_state, match_bol, nocase
  ):
      # Sequences 'bol bol' and 'bol eof' are impossible, so only need
      # to allow for bol if sym is eol
      if match_bol and self.sym == EOL:
          initial_state = self.build_opt(m, initial_state, BOL)
      initial_state.add_transition(self.sym, final_state)
  
imports: from __future__ import absolute_import
  import types
  from .None import Errors
label_desc: Use image node_id 2 for calling the SpecialSymbol obj's underlying member method code with example usage: obj.build_machine(m, initial_state, final_state, match_bol, nocase) without return types