Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing functions in pegjs file #1

Open
pastaclub opened this issue Mar 6, 2012 · 2 comments
Open

missing functions in pegjs file #1

pastaclub opened this issue Mar 6, 2012 · 2 comments

Comments

@pastaclub
Copy link

Hi! I am trying to get this to work, but I encountered a number of functions which seem to be defined nowhere and called by the parser. They are called from within the JavaScript parts that process grammar items.

Functions missing are for example:

  • merge
  • flatstr
  • put_if_not_null
  • nonempty

I suspect that either a JavaScript include file is missing or that you were relying on functions generated as part of the parser by an older version of PEGJS which might not exist anymore... can you help me out?

@shamrin
Copy link

shamrin commented Apr 12, 2012

Take a look at sql.pegjs-head.js. It works if you put the content of sql.pegjs-head.js inside { } and before the grammar. For example, try doing it in http://pegjs.majda.cz/online.

@shamrin
Copy link

shamrin commented Apr 12, 2012

Or you can experiment with my fork of sqld3 for Language.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants