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

org.unlaxer.parser.clang.BlockComment Maven / Gradle / Ivy

package org.unlaxer.parser.clang;

import java.util.List;

import org.unlaxer.Name;
import org.unlaxer.parser.ChainParsers;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.combinator.LazyChain;
import org.unlaxer.parser.elementary.WildCardStringTerninatorParser;
import org.unlaxer.parser.elementary.WordParser;

public class BlockComment extends LazyChain{

	private static final long serialVersionUID = 2143565367402566927L;

	public BlockComment() {
		super();
	}
	public BlockComment(Name name) {
		super(name);
	}

	@Override
	public List getLazyParsers() {
		return new ChainParsers(
			new WordParser("/*"),
			new WildCardStringTerninatorParser("*/"),
			new WordParser("*/")
		);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy