-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out "cimple" parser out of tokstyle.
Also, added support for some apidsl-like language. This will become apidsl v2.
- Loading branch information
Showing
35 changed files
with
478 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
/.stack-work | ||
/stack.yaml.lock | ||
# Build products. | ||
/dist | ||
/*.tix | ||
/.*.pid | ||
/.*.stamp | ||
|
||
/.cabal-sandbox | ||
/cabal.config | ||
/cabal.sandbox.config | ||
/dist | ||
/.stack-work | ||
/stack.yaml.lock | ||
|
||
# Temporary files. | ||
*~ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Tokstyle | ||
# Haskell package: cimple | ||
|
||
C style checker for TokTok projects. | ||
Parser for a dialect of C including Apidsl. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: cimple | ||
version: 0.0.1 | ||
synopsis: Simple C-like programming language | ||
homepage: https://toktok.github.io/ | ||
license: GPL-3 | ||
license-file: LICENSE | ||
author: Iphigenia Df <[email protected]> | ||
maintainer: Iphigenia Df <[email protected]> | ||
copyright: Copyright (c) 2016-2020, Iphigenia Df | ||
category: Data | ||
stability: Experimental | ||
cabal-version: >= 1.10 | ||
build-type: Simple | ||
description: | ||
Parser and AST for Cimple, a simple C-like programming language. | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/TokTok/hs-cimple | ||
|
||
library | ||
default-language: Haskell2010 | ||
hs-source-dirs: | ||
src | ||
ghc-options: | ||
-Wall | ||
build-tools: alex, happy | ||
exposed-modules: | ||
Language.Cimple | ||
, Language.Cimple.Diagnostics | ||
, Language.Cimple.IO | ||
, Language.Cimple.TraverseAst | ||
other-modules: | ||
Language.Cimple.AST | ||
, Language.Cimple.Lexer | ||
, Language.Cimple.Parser | ||
, Language.Cimple.Tokens | ||
build-depends: | ||
base < 5 | ||
, aeson | ||
, array | ||
, bytestring | ||
, compact | ||
, containers | ||
, mtl | ||
, text | ||
|
||
executable dump-ast | ||
default-language: Haskell2010 | ||
hs-source-dirs: | ||
tools | ||
ghc-options: | ||
-Wall | ||
main-is: dump-ast.hs | ||
build-depends: | ||
base < 5 | ||
, bytestring | ||
, cimple | ||
, groom | ||
, text | ||
|
||
executable dump-tokens | ||
default-language: Haskell2010 | ||
hs-source-dirs: | ||
tools | ||
ghc-options: | ||
-Wall | ||
main-is: dump-tokens.hs | ||
build-depends: | ||
base < 5 | ||
, bytestring | ||
, cimple | ||
, groom | ||
, text | ||
|
||
test-suite testsuite | ||
type: exitcode-stdio-1.0 | ||
default-language: Haskell2010 | ||
hs-source-dirs: test | ||
main-is: testsuite.hs | ||
other-modules: | ||
Language.CimpleSpec | ||
ghc-options: | ||
-Wall | ||
-fno-warn-unused-imports | ||
build-depends: | ||
base < 5 | ||
, cimple | ||
, hspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Language.Cimple (module X) where | ||
|
||
import Language.Cimple.AST as X | ||
import Language.Cimple.Lexer as X | ||
import Language.Cimple.Parser as X | ||
import Language.Cimple.Tokens as X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Tokstyle/Cimple/Diagnostics.hs → src/Language/Cimple/Diagnostics.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.