Attributes.cs 645 B

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