mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
16 lines
441 B
C#
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);
|
|
}
|
|
}
|
|
}
|