Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Issues
  • #74
Closed
Open
Issue created Jun 21, 2013 by Administrator@rootContributor

Compiling pure js code

Created by: Gabriano

I've tried compiling sweet's own parser.js file and got the following errror. Line 3945 is the very last line of the file. I got the same error on another pure-js file.

Thx, Eric

==> sjs -o sweet.parser.js parser.js

/usr/local/lib/node_modules/sweet.js/lib/parser.js:3901 throw e; ^ Error: Line 3945: Unexpected token () at throwError (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1204:21) at throwUnexpected (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1260:9) at expect (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1269:13) at parsePrimaryExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1594:13) at parseLeftHandSideExpressionAllowCall (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1761:48) at parsePostfixExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1808:20) at parseUnaryExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1878:16) at parseMultiplicativeExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1884:20) at parseAdditiveExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1901:20) at parseShiftExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1922:20)

I also ran into the same error on another pure js file.

Assignee
Assign to
Time tracking