Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C# by aliska1024 ( 14 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace laba
{
public class CLTerm
{
public string term;
public CLTerm(string terminator)
{
term = terminator;
}
public void CLAssign(string terminator)
{
term = terminator;
}
public string ReduceTerm()
{
string pattern = "^.[W][x][y].$";
Regex regexp = new Regex(pattern);
term = regexp.Replace(term, "xyy", 1);
return term;
}
}
}
Revise this Paste