Skip to content

Instantly share code, notes, and snippets.

@zaibacu
Created October 17, 2020 11:42
Show Gist options
  • Save zaibacu/824b5babd5cda1dd956e2c45aeaf14ad to your computer and use it in GitHub Desktop.
Save zaibacu/824b5babd5cda1dd956e2c45aeaf14ad to your computer and use it in GitHub Desktop.
greetings = {"hello", "hi", "hola"}
time_of_day = {"morning", "evening", "afternoon", "day"}
usual_suspects = {"life", "wife", "kids", "job"}
IN_LIST(greetings)->MARK("GREETING")
{WORD("GOOD"), IN_LIST(time_of_day)}->MARK("GREETING")
{WORD("How are you doing?")}->MARK("WHATS_UP")
{WORD("How"), WORD?, WORD("the"), WORD("weather")}->MARK("WEATHER_QUESTION")
{WORD("How"), WORD?, WORD("your")?, IN_LIST(usual_suspects)}->MARK("WHATS_UP")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment