itod / pegkit

'Parsing Expression Grammar' toolkit for Cocoa/Objective-C
MIT License
392 stars 37 forks source link

Failed to match input token #21

Closed PFElements closed 8 years ago

PFElements commented 9 years ago
  1. Downloaded Zip of PegKit
  2. Downloaded Zip of templateengine
  3. Opened the workspace of PegKit andadded templateengine project in that workspace
  4. Ran ParseGenApp target and generated code for minmath grammar successfully
  5. Ran ParseGenApp target and generated code for mysql grammar but got error

Failed to match next input token: Line : 3 Near : @ singleLineComments Expected : Word

Found : @

Any reason why? mysql grammar works, if the code is downloaded from http://itod.github.io/PEGKitMiniMathTutorial/

itod commented 9 years ago

This is a tokenizer directive: @singleLineComments

Those were supported by ParseKit, but are not supported by PEGKit. Search the PEGKit project for “.grammar” files for examples of how to create a grammar for PEGKit

TD

On Sat, Feb 28, 2015 at 2:42 PM, pixybaba notifications@github.com wrote:

  1. Downloaded Zip of PegKit
  2. Downloaded Zip of templateengine
  3. Opened the workspace of PegKit andadded templateengine project in that workspace
  4. Ran ParseGenApp target and generated code for minmath grammar successfully
  5. Ran ParseGenApp target and generated code for mysql grammar but got error

Failed to match next input token: Line : 3 Near : @ singleLineComments Expected : Word

Found : @

Any reason why? mysql grammar works, if the code is downloaded from http://itod.github.io/PEGKitMiniMathTutorial/

— Reply to this email directly or view it on GitHub https://github.com/itod/pegkit/issues/21.