Skip to content

Frontend #11

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

Merged
merged 32 commits into from
Jan 16, 2023
Merged

Frontend #11

merged 32 commits into from
Jan 16, 2023

Conversation

bladyjoker
Copy link
Contributor

@bladyjoker bladyjoker commented Jan 9, 2023

DONE:

  • Introduced lambda-buffers-frontend
  • Scaffolded lambda-buffers-frontend-cli compile command
  • Implemented lambda-buffers-frontend-cli format command
  • Parser that currently only works on type definitions
  • Frontend error tests
cabal run lambda-buffers-frontend:test:tests 
Build profile: -w ghc-9.2.4 -O1
In order, the following will be built (use -v for more details):
 - lambda-buffers-frontend-0.1.0.0 (test:tests) (additional components to build)
Preprocessing test suite 'tests' for lambda-buffers-frontend-0.1.0.0..
Building test suite 'tests' for lambda-buffers-frontend-0.1.0.0..
Frontend tests
  LambdaBuffers.Frontend
    Frontend error tests
      Duplicate type definition:     OK
      Import cycle found:            OK
      Imported symbol not found:     OK
      Invalid module filepath:       OK
      Module not found:              OK
      Module parse error:            OK
      Multiple modules found:        OK
      Symbol already imported:       OK
      Type definition name conflict: OK
      Type reference not found:      OK
    Frontend success tests
      Good:                          OK

All 11 tests passed (0.00s)

TODO:

  • I'm yet to generate a CompilerInput.proto and invoke the Compiler
  • I'm yet to parse comments, record and product ty defs, and type class/instance expressions

@bladyjoker bladyjoker requested review from gnumonik and cstml January 13, 2023 14:46
@bladyjoker bladyjoker merged commit f325ac2 into main Jan 16, 2023
@bladyjoker bladyjoker deleted the bladyjoker/frontend branch January 16, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants