﻿/*
 * Copyright (c) 2018 Platypus Language http://platypus.vfrz.fr/
 *  This file is part of CPlatypus.
 *
 *     CPlatypus is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     CPlatypus is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with CPlatypus.  If not, see <http://www.gnu.org/licenses/>.
 */

using CPlatypus.Core;
using CPlatypus.Framework;
using CPlatypus.Framework.Parser;

namespace CPlatypus.Parser
{
    public abstract class PlatypusNode : Node<PlatypusNode>
    {
        public readonly int Id;

        protected PlatypusNode(int id, SourceLocation sourceLocation) : base(sourceLocation)
        {
            Id = id;
        }

        public abstract void Accept(IPlatypusVisitor visitor, PlatypusNode parent);

        public abstract void AcceptChildren(IPlatypusVisitor visitor, PlatypusNode parent);
    }
}