geode/codegen/Broma/PEGTL-3.2.7/include/tao/pegtl/internal/identifier.hpp

23 lines
663 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
// Copyright (c) 2017-2022 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_IDENTIFIER_HPP
#define TAO_PEGTL_INTERNAL_IDENTIFIER_HPP
#include "../config.hpp"
#include "peek_char.hpp"
#include "ranges.hpp"
#include "seq.hpp"
#include "star.hpp"
namespace TAO_PEGTL_NAMESPACE::internal
{
using identifier_first = ranges< peek_char, 'a', 'z', 'A', 'Z', '_' >;
using identifier_other = ranges< peek_char, 'a', 'z', 'A', 'Z', '0', '9', '_' >;
using identifier = seq< identifier_first, star< identifier_other > >;
} // namespace TAO_PEGTL_NAMESPACE::internal
#endif