Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8f6cc26
Update README and add Core Erlang Spec
emqplus Mar 23, 2020
ceb000b
Rename the 'README' to 'README.md'
emqplus Mar 23, 2020
edc37f0
Update README
emqplus Mar 23, 2020
da6a6a3
Update source files and add Makefile
emqplus Mar 23, 2020
dd9f950
Update README
emqplus Mar 23, 2020
d7b8df4
Add examples
emqplus Mar 23, 2020
7c3a79f
Build using stack
emqplus Mar 23, 2020
26fe51b
Indent the exprs
emqplus Mar 23, 2020
850a63b
Support erlang map syntax
emqplus Mar 24, 2020
b2cf725
Fix the do layout
emqplus Mar 25, 2020
cb376f7
Add more test cases for CoreErlang Parser
emqplus Mar 25, 2020
d8e321e
Remove the jsx folder
emqplus Mar 25, 2020
718cbb5
Add jsx core files
emqplus Mar 25, 2020
90a4ed5
Remove the stale test/data/jsx folder
emqplus Mar 25, 2020
06e976f
Add jsx folder
emqplus Mar 25, 2020
fe3e0c1
finish add-test-case
Mar 25, 2020
209b8f2
Merge pull request #1 from sdzx1993/add-test-case
emqplus Mar 25, 2020
a2d54de
remove shouldBe (Atom "jsx")
Mar 25, 2020
7e1a000
Merge pull request #2 from sdzx1993/add-test-case
emqplus Mar 25, 2020
19e5c5d
when filure , it will expectation
Mar 25, 2020
9fad08e
Merge pull request #3 from sdzx1993/add-test-case
emqplus Mar 25, 2020
9042b96
Improve the AST Parser
emqplus Mar 26, 2020
87af297
Ignore .swp
emqplus Mar 26, 2020
f561154
Merge pull request #4 from hamler-lang/annotated-ast
emqplus Mar 26, 2020
6b52ec3
Remove the 'testParser' context
emqplus Mar 26, 2020
30cc031
Merge pull request #5 from hamler-lang/annotated-ast
emqplus Mar 26, 2020
806ad3c
Update the Hello.core file
emqplus Mar 27, 2020
e2eef6c
Merge pull request #6 from hamler-lang/annotated-ast
emqplus Mar 27, 2020
fe7add3
Rename 'lambda' to 'lam'
emqplus Apr 7, 2020
a12462c
Merge pull request #8 from hamler-lang/lam
emqplus Apr 7, 2020
7364c70
Fix errors, add VarMap, UpdateMap constructor
May 13, 2020
a82c9f9
Merge pull request #9 from hamler-lang/FixBug
Time-Hu May 13, 2020
cd84d64
Fix the 'unused-matches' warning
emqplus May 13, 2020
69bce59
fix(Pretty.hs): fix char print bug
Jun 3, 2020
afb0b73
fix(Pretty.hs): fix LChar print bug
Jun 3, 2020
f271055
fix(all): all test passed
Jun 9, 2020
06639c2
feature(parser): add parseModuleHead
Jun 16, 2020
06a5e47
test: add otp23 core files
emqplus Jun 24, 2020
b86fb15
refactor(all): add annotations to syntax
Jul 6, 2020
2e67883
refactor(all): add annotations to syntax
Jul 6, 2020
0a0c773
refactor(syntax): it is now proper annotated syntax tree
Jul 7, 2020
9c55866
refactor(syntax): it is now proper annotated syntax tree
Jul 7, 2020
a4fdf29
feature(pretty): format pretty print
Jul 9, 2020
be1a7df
feat(Syntax): add Class Ann
Jul 13, 2020
3d3b832
feat(pretty): add prettyText api
Jul 13, 2020
99586d1
fix(Pretty): export function 'prettyText'
Jul 13, 2020
e70a3df
fix(pretty): fix string printed without "
Jul 13, 2020
0ed9a35
fix(pretty): fix pretty Char "
Jul 13, 2020
2ea1038
fix(pretty): fix pretty Char
Jul 13, 2020
2bacba6
fix(bug): fix broken atom (#22)
Time-Hu Jul 23, 2020
c0466e1
fix(Pretty): fix LString pretty function
Aug 19, 2020
88f6da8
use cabal build project
Mar 18, 2021
765eb45
remove ShowErrorComponent
Mar 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.stack-work/
dist-newstyle/
stack.yaml.lock
*~
.DS_Store
*.swp
test/generated/
2 changes: 0 additions & 2 deletions AUTHORS

This file was deleted.

18 changes: 18 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Changelog for CoreErlang

## Unreleased changes

- Add test cases

## 0.1.0.0

- Initial release

## 0.0.5.0

- Support erlang map syntax

## 0.0.4.0

- Forked from amtal/CoreErlang

102 changes: 73 additions & 29 deletions CoreErlang.cabal
Original file line number Diff line number Diff line change
@@ -1,35 +1,79 @@
name: CoreErlang
version: 0.0.4
copyright: 2008, David Castro Pérez, Henrique Ferreiro García
license: BSD3
license-file: LICENSE
author: David Castro Pérez <[email protected]>
Henrique Ferreiro García <[email protected]>
maintainer:
Alex Kropivny <[email protected]>
homepage: http://github.com/amtal/CoreErlang
category: Language
synopsis: Manipulating Core Erlang source code
description:
Facilities for manipulating Core Erlang source code:
an abstract syntax, parser and pretty-printer.
build-type: Simple
cabal-version: >= 1.6
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: a0faa729ab4adcde1ae8edd4ad14800ff6b9c9f1404ea2b70e037628548d3dae

name: CoreErlang
version: 0.0.5
synopsis: Manipulating Core Erlang source code
description: Facilities for manipulating Core Erlang source code: an abstract syntax, parser and pretty-printer.
category: Language
homepage: https://github.com/hamler-lang/CoreErlang
bug-reports: https://github.com/hamler-lang/CoreErlang/issues
author: David Castro Pérez <[email protected]>, Henrique Ferreiro García <[email protected]>
maintainer: Alex Kropivny <[email protected]>, Feng Lee <[email protected]>
copyright: 2008, David Castro Pérez, Henrique Ferreiro García
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
AUTHORS LICENSE
README.md
ChangeLog.md

source-repository head
type: git
location: https://github.com/hamler-lang/CoreErlang

library
exposed-modules:
Language.CoreErlang.Parser,
Language.CoreErlang.Pretty,
Language.CoreErlang.Syntax
build-depends:
base >=4.8 && <=4.11,
pretty >=1.1 && <1.2,
parsec >=3.1 && <3.2
other-extensions: DeriveDataTypeable
Language.CoreErlang
other-modules:
Language.CoreErlang.Parser
Language.CoreErlang.Pretty
Language.CoreErlang.Syntax
Paths_CoreErlang
hs-source-dirs:
src
default-extensions: DeriveDataTypeable LambdaCase
ghc-options: -Wall -O2
build-depends:
base >=4.7 && <5
, directory >= 1.3.3.0
, parsec >=3.1 && <3.2
, pretty >=1.1 && <1.2
, tasty >= 1.2
, tasty-hspec >= 1.1.5.1
, megaparsec >= 8.0.0
, text >= 1.2.3.1
, prettyprinter >= 1.2.1
, filepath>=1.4.2.1
default-language: Haskell2010

source-repository head
type: git
location: https://github.com/amtal/CoreErlang.git
test-suite test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
TestParser
Paths_CoreErlang
hs-source-dirs:
test
default-extensions: DeriveDataTypeable LambdaCase
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
CoreErlang
, base >=4.7 && <5
, directory >= 1.3.3.0
, hspec
, parsec >=3.1 && <3.2
, pretty >=1.1 && <1.2
, tasty
, tasty >= 1.2
, tasty-hspec
, tasty-hspec >= 1.1.5.1
, megaparsec >= 8.0.0
, prettyprinter >= 1.2.1
, filepath >= 1.4.2.1
default-language: Haskell2010
Loading