blob: b9e0a6caa5d66aa0756389f4cd493d8631f2767a [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <stdint.h>
#include <map>
#include "fidl/source_file.h"
#include "string_view.h"
#include "token.h"
#include "types.h"
namespace fidl {
class IdentifierTable {
public:
IdentifierTable();
Token MakeIdentifier(StringView source_data, const SourceFile& source_file,
bool escaped_identifier) const;
private:
std::map<StringView, Token::Kind> keyword_table_;
};
} // namespace fidl