Giter Club home page Giter Club logo

Comments (4)

MegaIng avatar MegaIng commented on August 15, 2024

What exactly are you doing to trigger this error and why do you think it should work?

from lark.

raeldor avatar raeldor commented on August 15, 2024

It triggers simply on this call, but only when run on Amazon Linux...

    mdx_parser = Lark(r"""
                      select : "SELECT" set_list axis "," set_list axis from_clause where_clause 
                      
                      UNQUOTED_STRING : (DIGIT|LETTER|" ")+

                      element : "[" UNQUOTED_STRING "].[" UNQUOTED_STRING "].[" UNQUOTED_STRING "]"
                      dimension : "[" UNQUOTED_STRING "].[" UNQUOTED_STRING "]"
                      cube : "[" UNQUOTED_STRING "]"
                      element_list : [element ("," element)*]
                      tm1subset : "TM1SubsetToSet(" dimension "," ESCAPED_STRING "," ESCAPED_STRING ")"
                      tm1set : "{" element_list "}" | "{" tm1subset "}"
                      set_clause : "NON EMPTY" tm1set | tm1set
                      set_list : [set_clause ("*" set_clause)*]
                      axis : "ON" SIGNED_NUMBER
                      from_clause : "FROM" cube -> from_clause
                      where_clause : "WHERE" "(" element_list ")" -> where_clause
                        
                      %import common.ESCAPED_STRING
                      %import common.WORD
                      %import common.DIGIT
                      %import common.LETTER
                      %import common.SIGNED_NUMBER
                      %import COMMON.WS
                      %ignore WS
                      """, start='select')

from lark.

erezsh avatar erezsh commented on August 15, 2024
%import COMMON.WS

common should be lowercase

from lark.

raeldor avatar raeldor commented on August 15, 2024
%import COMMON.WS

common should be lowercase

Yikes. I'm embarrassed for mising that. Thank you!

from lark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.