Skip to content
Discussion options

You must be logged in to vote

In your case, I’d do it this way, though maybe @echasnovski has a better solution:

Warning

It seems your quotes are treated as multiple chars, so %b【】 doesn’t work in Lua.

b = {
  {
    MiniAi.gen_spec.pair("", ""),
    MiniAi.gen_spec.pair("(", ")", { type = "balanced" }),
    MiniAi.gen_spec.pair("[", "]", { type = "balanced" }),
    MiniAi.gen_spec.pair("{", "}", { type = "balanced" }),
  },
},

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@echasnovski
Comment options

@soluty
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.ai
3 participants