Attributes.cs 543 B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace NTERA.Interpreter
  3. {
  4. [AttributeUsage(AttributeTargets.Method)]
  5. public class TargetKeywordAttribute : Attribute
  6. {
  7. public Token Token { get; }
  8. public TargetKeywordAttribute(Token token)
  9. {
  10. Token = token;
  11. }
  12. }
  13. [AttributeUsage(AttributeTargets.Method)]
  14. public class BuiltInFunctionAttribute : Attribute
  15. {
  16. public string Name { get; }
  17. public BuiltInFunctionAttribute(string name)
  18. {
  19. Name = name;
  20. }
  21. }
  22. }