All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.cenotelie.commons.utils.json.JsonParser Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2017 Association Cénotélie (cenotelie.fr)
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3
 * of the License, or (at your option) any later version.
 *
 * This program 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this program.
 * If not, see .
 ******************************************************************************/

/*
 * WARNING: this file has been generated by
 * Hime Parser Generator 2.0.0.0
 */

package fr.cenotelie.commons.utils.json;

import fr.cenotelie.hime.redist.Symbol;
import fr.cenotelie.hime.redist.parsers.LRkAutomaton;
import fr.cenotelie.hime.redist.parsers.LRkParser;

/**
 * Represents a parser
 */
public class JsonParser extends LRkParser {
    /**
     * The automaton for this parser
     */
    private static final LRkAutomaton commonAutomaton = LRkAutomaton.find(JsonParser.class, "JsonParser.bin");
    /**
     * The collection of variables matched by this parser
     * 

* The variables are in an order consistent with the automaton, * so that variable indices in the automaton can be used to retrieve the variables in this table */ private static final Symbol[] variables = { new Symbol(0x000E, "document"), new Symbol(0x000F, "object"), new Symbol(0x0010, "member"), new Symbol(0x0011, "array"), new Symbol(0x0012, "value"), new Symbol(0x0015, "__V21"), new Symbol(0x0019, "__V25"), new Symbol(0x001B, "__axiom")}; /** * The collection of virtuals matched by this parser *

* The virtuals are in an order consistent with the automaton, * so that virtual indices in the automaton can be used to retrieve the virtuals in this table */ private static final Symbol[] virtuals = { }; /** * Initializes a new instance of the parser * * @param lexer The input lexer */ public JsonParser(JsonLexer lexer) { super(commonAutomaton, variables, virtuals, null, lexer); } /** * Contains the constant IDs for the variables and virtuals in this parser */ public static class ID { /** * The unique identifier for variable document */ public static final int document = 0x000E; /** * The unique identifier for variable object */ public static final int object = 0x000F; /** * The unique identifier for variable member */ public static final int member = 0x0010; /** * The unique identifier for variable array */ public static final int array = 0x0011; /** * The unique identifier for variable value */ public static final int value = 0x0012; /** * The unique identifier for variable __axiom */ public static final int __axiom = 0x001B; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy