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

Examples don't work #197

Open
knothed opened this issue Jul 23, 2021 · 4 comments
Open

Examples don't work #197

knothed opened this issue Jul 23, 2021 · 4 comments

Comments

@knothed
Copy link
Contributor

knothed commented Jul 23, 2021

Many of the examples do not work. They seem to use outdated techniques of happy and often import modules that don't exist.

@ghost
Copy link

ghost commented Mar 7, 2022

ErrorTest.ly
LexerTest.ly
MonadTest.ly

- import Char
+ import Data.Char

@ghost
Copy link

ghost commented Mar 7, 2022

Calc.ly

- import Char
+ import Data.Char

after running happy Calc.ly an error results

$ runghc Calc.hs

Calc.hs:0:53: error:
    * Variable not in scope: main :: IO a0
    * Perhaps you meant `min' (imported from Prelude)
$ 

@ghost
Copy link

ghost commented Mar 7, 2022

$ happy PgnParser.ly
PgnParser.ly:26: unrecognised directive: %newline
$

@ghost
Copy link

ghost commented Mar 7, 2022

DavesExample.ly

> import Lexer
> import Convert
> import PreludeGlaArray

ErlParser.ly

> import GenUtils
> import Lexer
> import AbsSyn
> import Types
> import ParseMonad.Class

SimonsExample.ly

> import Type
> import Lexer

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

1 participant