Skip to content

Commit

Permalink
Merge branch 'hotfix/0.3.1-RC1'
Browse files Browse the repository at this point in the history
  • Loading branch information
James Thompson committed May 7, 2019
2 parents a79a10f + 3ef8d3d commit a388d58
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.3.1-RC1] - 2019-05-7
### Changed
- EEC is renamed to Mesa

## [0.3.0-RC1] - 2019-05-7
### Added
- A Prelude library, containing data definitions for encodings of sums and
Expand Down Expand Up @@ -94,7 +98,8 @@ All notable changes to this project will be documented in this file.
- Source files use `.hs` suffix at present to benefit from syntax highlighting.
- Refer to [eec/src/main/antlr4/EEC.g4](eec/src/main/antlr4/EEC.g4) for a context free grammar.

[Unreleased]: https://github.com/bishabosha/EEC/compare/0.3.0-RC1...develop
[Unreleased]: https://github.com/bishabosha/EEC/compare/0.3.1-RC1...develop
[0.3.1-RC1]: https://github.com/bishabosha/EEC/releases/tag/0.3.1-RC1
[0.3.0-RC1]: https://github.com/bishabosha/EEC/releases/tag/0.3.0-RC1
[0.2.3-RC1]: https://github.com/bishabosha/EEC/releases/tag/0.2.3-RC1
[0.2.2-RC1]: https://github.com/bishabosha/EEC/releases/tag/0.2.2-RC1
Expand Down
2 changes: 1 addition & 1 deletion eec/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EEC 0.3.0-RC1
# Mesa 0.3.1-RC1

## Requirements
* sbt 1.2.8
Expand Down
4 changes: 2 additions & 2 deletions eec/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ antlr4GenVisitor in Antlr4 := false // default: false
lazy val root = project
.in(file("."))
.settings(
name := "eec",
version := "0.3.0-RC1",
name := "mesa-core",
version := "0.3.1-RC1",

compileOrder := CompileOrder.JavaThenScala,

Expand Down
2 changes: 1 addition & 1 deletion eec/src/main/antlr4/EEC.g4 → eec/src/main/antlr4/Mesa.g4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
/*Derived from https://github.com/antlr/grammars-v4/blob/master/scala/Scala.g4
*/
grammar EEC;
grammar Mesa;

literal:
IntegerLiteral
Expand Down
2 changes: 1 addition & 1 deletion eec/src/main/scala/eec/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object Main {
if args `sameElements` Array("-help") then {
println("Usage: eec <option>")
println
println(" -e => run EEC REPL")
println(" -e => run Mesa REPL")
println(" -p => modifier for -e to load the REPL with Prelude definitions.")
println(" -help => view these options")
} else if args `sameElements` Array("-e") then {
Expand Down
2 changes: 1 addition & 1 deletion eec/src/main/scala/eec/compiler/parsing/EntryPoint.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import error.CompilerErrors.Lifted
import core.Contexts.IdReader

object EntryPoint {
val parseEEC: String => IdReader[Lifted[Tree]] =
val parseMesa: String => IdReader[Lifted[Tree]] =
eecParser `toTreeParser` fromTranslationUnit

val parseDef: String => IdReader[Lifted[Tree]] =
Expand Down
8 changes: 4 additions & 4 deletions eec/src/main/scala/eec/compiler/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Constants._
import core.Constants.Constant._
import Modifiers.{Modifier}
import Modifier._
import EECParser._
import MesaParser._
import types.Types.TypeOps._
import error.CompilerErrors._

Expand Down Expand Up @@ -946,11 +946,11 @@ object Parsers {
}
}

private def genParser(input: String): EECParser = {
private def genParser(input: String): MesaParser = {
val charStream = new ANTLRInputStream(input)
val lexer = new EECLexer(charStream)
val lexer = new MesaLexer(charStream)
val tokens = new CommonTokenStream(lexer)
val parser = new EECParser(tokens)
val parser = new MesaParser(tokens)
lexer.removeErrorListeners
lexer.addErrorListener(eecErrorListener)
parser.removeErrorListeners
Expand Down
6 changes: 3 additions & 3 deletions eec/src/main/scala/eec/repl/Repl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Meta.ContextOps._
import Contexts.{Context, IdGen, RootContext, IdReader}
import Names.{Name, NameOps}
import Context._
import parsing.EntryPoint.{parseEEC, parseDef, parseExpr}
import parsing.EntryPoint.{parseMesa, parseDef, parseExpr}
import error.CompilerErrors.{CompilerError, CompilerErrorOps, Lifted}
import CompilerErrorOps._
import types.{Namers, Typers, Types, Prelude}
Expand Down Expand Up @@ -161,7 +161,7 @@ object Repl {
Ast(name) { n =>
for
code <- loadFile(state.pwd, n)
ast <- parseEEC(code)
ast <- parseMesa(code)
yield ast
}

Expand All @@ -172,7 +172,7 @@ object Repl {
Typed(name) { n =>
for
code <- loadFile(state.pwd, n)
ast <- parseEEC(code)
ast <- parseMesa(code)
yield ast
}

Expand Down

0 comments on commit a388d58

Please sign in to comment.