com.github._1c_syntax.bsl.parser.BSLMethodDescriptionTokenizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bsl-parser Show documentation
Show all versions of bsl-parser Show documentation
Collection of parsers for Language 1C (BSL) in ANTLR4 format.
The newest version!
/*
* This file is a part of BSL Parser.
*
* Copyright (c) 2018-2024
* Alexey Sosnoviy , Nikita Fedkin , Sergey Batanov
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*
* BSL Parser 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.0 of the License, or (at your option) any later version.
*
* BSL Parser 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 BSL Parser.
*/
package com.github._1c_syntax.bsl.parser;
import org.antlr.v4.runtime.CharStreams;
public class BSLMethodDescriptionTokenizer
extends Tokenizer {
public BSLMethodDescriptionTokenizer(String content) {
super(content + "\n",
new BSLMethodDescriptionLexer(CharStreams.fromString(""), true),
BSLMethodDescriptionParser.class);
}
@Override
protected BSLMethodDescriptionParser.MethodDescriptionContext rootAST() {
return parser.methodDescription();
}
}