Hash :
28182485
Author :
Date :
2012-04-24T23:07:34
Drastically simplified Input class. Now most of the heavy lifting is done by in-built yy_scan_string and yy_scan_bytes. Comment handling will be done by the lexer. git-svn-id: https://angleproject.googlecode.com/svn/trunk@1051 736b8ea6-26fd-11df-bfd4-992fa37f6226
//
// Copyright (c) 2011 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef COMPILER_PREPROCESSOR_INPUT_H_
#define COMPILER_PREPROCESSOR_INPUT_H_
namespace pp
{
// Holds lexer input.
struct Input
{
// Input.
int count;
const char* const* string;
const int* length;
// Current read position.
int index; // Index of string currently being scanned.
void* buffer; // Current buffer handle.
Input();
};
} // namespace pp
#endif // COMPILER_PREPROCESSOR_INPUT_H_