All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
scanner.cc File Reference
#include <iostream>
#include <string.h>
#include "scanner.h"

Go to the source code of this file.

Functions

static bool isDigit (char c)
 
static bool isAlpha (char c)
 

Function Documentation

static bool isAlpha ( char  c)
static

Definition at line 42 of file scanner.cc.

42  {
43  return (c >= 'a' && c <= 'z') ||
44  (c >= 'A' && c <= 'Z') ||
45  c == '_';
46 }
static bool isDigit ( char  c)
static

Definition at line 38 of file scanner.cc.

38  {
39  return c >= '0' && c <= '9';
40 }