Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!jarthur!uunet!tronsbox!akcs.kochin From: akcs.kochin@tronsbox.xei.com (Kochin Chang) Newsgroups: comp.lang.c Subject: BNF grammar for C language Keywords: BNF grammar C Message-ID: <27568bee-394.1comp.lang.c-1@tronsbox.xei.com> Date: 30 Nov 90 17:06:09 GMT References: <2195.2754fcc2@iccgcc.decnet.ab.com> Lines: 13 My opinion about your second question is that you can set the terminal to RAW mode. In RAW mode, you have fully control on the input character. Then you can check each input character to see if it is a valid octal digit. You can find infomation from many books (one book I have is "UNIX SYSTEM PROGRAMMING" by K. Haviland and B. Salama). You also can read the EMACS source code (if you can access it) to see how it's used. Kochin Chang akcs.kochin@tronsbox.xei.com