(a2ps.info)A Bit of Syntax


Next: Style Sheet Header Up: Style Sheets Implementation
Enter node , (file) or (file)node

7.6.1 A Bit of Syntax
---------------------

Here are the lexical rules underlying the style sheet language:
   - the separators are white space, form feed, new line, and tab.

   - '#' introduces a comment, ended at the end of the line.

   - special characters are the separators, plus '#', '"', ',', '(',
     ')', '+' and '/'.  Any other character is a regular character.

   - the list of the structuring keywords is
          'alphabet', 'alphabets', 'are', 'case', 'documentation',
          'end', 'exceptions', 'first', 'in', 'insensitive', 'is',
          'keywords', 'operators', 'optional', 'second', 'sensitive',
          'sequences', 'style'

   - the list of the keywords designating faces is
          'Comment', 'Comment_strong', 'Encoding', 'Error', 'Index1',
          'Index2', 'Index3', 'Index4', 'Invisible', 'Keyword',
          'Keyword_strong', 'Label', 'Label_strong', 'Plain', 'String',
          'Symbol', 'Tag1', 'Tag2', 'Tag3', 'Tag4'

   - the list of keywords designating special sequences is
          'C-char', 'C-string'

   - the list of keywords representing special characters is
          '---', '\Alpha', '\Beta', '\Chi', '\Delta', '\Downarrow',
          '\Epsilon', '\Eta', '\Gamma', '\Im', '\Iota', '\Kappa',
          '\Lambda', '\Leftarrow', '\Leftrightarrow', '\Mu', '\Nu',
          '\Omega', '\Omicron', '\Phi', '\Pi', '\Psi', '\Re', '\Rho',
          '\Rightarrow', '\Sigma', '\Tau', '\Theta', '\Uparrow',
          '\Upsilon', '\Xi', '\Zeta', '\aleph', '\alpha', '\angle',
          '\approx', '\beta', '\bullet', '\cap', '\carriagereturn',
          '\cdot', '\chi', '\circ', '\clubsuit', '\cong', '\copyright',
          '\cup', '\delta', '\diamondsuit', '\div', '\downarrow',
          '\emptyset', '\epsilon', '\equiv', '\eta', '\exists',
          '\florin', '\forall', '\gamma', '\geq', '\heartsuit', '\in',
          '\infty', '\int', '\iota', '\kappa', '\lambda', '\langle',
          '\lceil', '\ldots', '\leftarrow', '\leftrightarrow', '\leq',
          '\lfloor', '\mu', '\nabla', '\neq', '\not', '\not\in',
          '\not\subset', '\nu', '\omega', '\omicron', '\oplus',
          '\otimes', '\partial', '\perp', '\phi', '\pi', '\pm',
          '\prime', '\prod', '\propto', '\psi', '\radicalex', '\rangle',
          '\rceil', '\register', '\rfloor', '\rho', '\rightarrow',
          '\sigma', '\sim', '\spadesuit', '\subset', '\subseteq',
          '\suchthat', '\sum', '\supset', '\supseteq', '\surd', '\tau',
          '\theta', '\therefore', '\times', '\trademark', '\uparrow',
          '\upsilon', '\varUpsilon', '\varcopyright', '\vardiamondsuit',
          '\varphi', '\varpi', '\varregister', '\varsigma', '\vartheta',
          '\vartrademark', '\vee', '\wedge', '\wp', '\xi', '\zeta'
     It is a good idea to print the style sheet 'symbols.ssh' to see
     them:
          a2ps symbols.ssh

   - a string starts and finishes with '"', and may contain anything.
     Regular 'C' escaping mechanism is used.

   - a regular expression starts and finishes with '/', and may contain
     anything.  Regular 'C' escaping mechanism is used.  Regexps can be
     split in several parts, a' la C strings (i.e., '/part 1/ /part
     2/').

   - any sequence of regular characters which is not a keyword, is a
     string (consider this as a shortcut, avoiding extraneous '"').


automatically generated by info2www version 1.2.2.9