26 lines
514 B
C#
26 lines
514 B
C#
|
using System;
|
|||
|
namespace sharp.parser
|
|||
|
{
|
|||
|
public class ParserPathSegment : ParserPath
|
|||
|
{
|
|||
|
public CharGroup CharGroup { get; private set; }
|
|||
|
|
|||
|
public ParserPathSegment(CharGroup charGroup)
|
|||
|
{
|
|||
|
this.CharGroup = charGroup;
|
|||
|
}
|
|||
|
public ParserPathSegment(char ch)
|
|||
|
{
|
|||
|
this.CharGroup = new CharGroup(ch);
|
|||
|
}
|
|||
|
public ParserPathSegment(char[] chars)
|
|||
|
{
|
|||
|
this.CharGroup = new CharGroup(chars);
|
|||
|
}
|
|||
|
public ParserPathSegment(char first, char last)
|
|||
|
{
|
|||
|
this.CharGroup = new CharGroup(first, last);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|