Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
98cc5f9e
Commit
98cc5f9e
authored
May 04, 2015
by
Sven Gestegård Robertz
Browse files
Merge branch 'master' of git.cs.lth.se:sven/labcomm-core
parents
58d2417c
318852d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/dynamic/test/DynamicPart.java
View file @
98cc5f9e
...
...
@@ -22,9 +22,9 @@ import se.lth.control.labcomm2014.Decoder;
import
se.lth.control.labcomm2014.DecoderChannel
;
import
se.lth.control.labcomm2014.Encoder
;
import
se.lth.control.labcomm2014.EncoderChannel
;
import
AST.
Parser
;
import
AST.
Scanner
;
import
AST
.Program
;
import
se.lth.control.labcomm2014.compiler.LabComm
Parser
;
import
se.lth.control.labcomm2014.compiler.LabComm
Scanner
;
import
se.lth.control.labcomm2014.compiler
.Program
;
import
beaver.Parser.Exception
;
public
class
DynamicPart
{
...
...
@@ -160,8 +160,8 @@ public class DynamicPart {
public
static
InRAMCompiler
generateCode
(
String
lcDecl
,
HashMap
<
String
,
String
>
handlers
)
{
Program
ast
=
null
;
InputStream
in
=
new
ByteArrayInputStream
(
lcDecl
.
getBytes
());
Scanner
scanner
=
new
Scanner
(
in
);
Parser
parser
=
new
Parser
();
LabComm
Scanner
scanner
=
new
LabComm
Scanner
(
in
);
LabComm
Parser
parser
=
new
LabComm
Parser
();
Collection
errors
=
new
LinkedList
();
InRAMCompiler
irc
=
null
;
...
...
@@ -200,7 +200,7 @@ public class DynamicPart {
private
static
InRAMCompiler
handleAst
(
Program
lcAST
,
HashMap
<
String
,
String
>
handlers
)
{
Map
<
String
,
String
>
genCode
=
new
HashMap
<
String
,
String
>();
try
{
lcAST
.
J_gen
(
genCode
,
"labcomm.generated"
,
201
3
);
lcAST
.
J_gen
(
genCode
,
"labcomm.generated"
,
201
4
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
examples/dynamic/test/TestLabcommGen.java
View file @
98cc5f9e
...
...
@@ -22,9 +22,9 @@ import se.lth.control.labcomm2014.Decoder;
import
se.lth.control.labcomm2014.DecoderChannel
;
import
se.lth.control.labcomm2014.Encoder
;
import
se.lth.control.labcomm2014.EncoderChannel
;
import
AST.
Parser
;
import
AST.
Scanner
;
import
AST
.Program
;
import
se.lth.control.labcomm2014.compiler.LabComm
Parser
;
import
se.lth.control.labcomm2014.compiler.LabComm
Scanner
;
import
se.lth.control.labcomm2014.compiler
.Program
;
import
beaver.Parser.Exception
;
public
class
TestLabcommGen
{
...
...
@@ -163,8 +163,8 @@ public class TestLabcommGen {
public
static
InRAMCompiler
generateCode
(
String
lcDecl
,
HashMap
<
String
,
String
>
handlers
)
{
Program
ast
=
null
;
InputStream
in
=
new
ByteArrayInputStream
(
lcDecl
.
getBytes
());
Scanner
scanner
=
new
Scanner
(
in
);
Parser
parser
=
new
Parser
();
LabComm
Scanner
scanner
=
new
LabComm
Scanner
(
in
);
LabComm
Parser
parser
=
new
LabComm
Parser
();
Collection
errors
=
new
LinkedList
();
InRAMCompiler
irc
=
null
;
...
...
@@ -203,7 +203,7 @@ public class TestLabcommGen {
private
static
InRAMCompiler
handleAst
(
Program
lcAST
,
HashMap
<
String
,
String
>
handlers
)
{
Map
<
String
,
String
>
genCode
=
new
HashMap
<
String
,
String
>();
try
{
lcAST
.
J_gen
(
genCode
,
"labcomm.generated"
,
201
3
);
lcAST
.
J_gen
(
genCode
,
"labcomm.generated"
,
201
4
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment