Cosmos/source2/Compiler/Cosmos.XSharp/TokenPatterns.cs
kudzu_cp 51017acec1 X#
2012-06-12 17:00:27 +00:00

16 lines
441 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Compiler.XSharp {
public class TokenPatterns : Dictionary<TokenPattern, string> {
public void Add(string aTokenTypes, string aCode) {
Add(new TokenPattern(aTokenTypes), aCode);
}
public void Add(TokenType[] aTokenTypes, string aCode) {
Add(new TokenPattern(aTokenTypes), aCode);
}
}
}