-
运算符应该支持否定,但我不能让它工作:
raw-type = "DINT" | "REAL" | "SINT" | "BIT"
custom-type = - raw-type
每次尝试我都会收到错误:RuntimeException - occurs on the right-hand side of your grammar, but not on the left instaparse.cfg/check-grammar (cfg.clj:252)
。在我放-
的位置似乎并不重要。
那么如何克服这个错误呢?或者是否有另一种方法可以执行上面的custom-type
?
答案 0 :(得分:1)
using System;
namespace CoinpaymentsTest
{
class Program
{
static void Main(string[] args)
{
var cp = new Coinpayments.Coinpayments("PRIVATEKEY", "PUBLICKEY");
var payment = cp.CreateTransactionSimple(2, "USD", "BTC", "ADDRESS", "IPN");
Console.WriteLine(payment.error);
Console.WriteLine(payment.result.qrcode_url);
var check = cp.GetTransactionInfo(payment.result.txn_id);
Console.WriteLine(check.result.payment_address);
Console.Read();
}
}
}
是否定的。使用!
而不是!
。