Skip to content

rcano/sps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

sps

Scala parboiled2 syntax is a project which simply defines all of the syntax of scala in parboiled2 rules. Note that the project doesn't aim to provide an AST at all.

The idea of the project is to have a set of rules that correctly represent the current state of scala's syntax without defining any AST, so in order you use it, you would fork it and add your own ast to the already defined rules.

Current State

I just finished defining all the rules from the spec but in an almost automatic way, but they wont work since the rules in the spec don't mind LL parsers at all. Right now imports, literals, and simple declaration (with blocks) works (at least what was tested, see tests), control flows, pattern matching (mostly, except for direct type match) works too.

What was not tested:

  • lambdas
  • function (declaration)
  • Template defintions (classes, traits, objects)
  • Everything else I haven't specificly noted before.

About

Scala parboiled2 syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages