Skip to content
Snippets Groups Projects
Commit 1d491d62 authored by Pamela Dyer's avatar Pamela Dyer
Browse files

Update models/Example36_Compiler1_ComponentReuse.mp,...

Update models/Example36_Compiler1_ComponentReuse.mp, models/Example37_Compiler2_ComponentReuse.mp files
parent 6a7abea5
No related branches found
No related tags found
1 merge request!392 into 3
...@@ -10,7 +10,7 @@ parser with lexical analyzer based on regular expression ...@@ -10,7 +10,7 @@ parser with lexical analyzer based on regular expression
matching. It models the behavior of Lex/Yacc generated matching. It models the behavior of Lex/Yacc generated
compiler’s front end. This model represents an architecture compiler’s front end. This model represents an architecture
where lexer stores tokens in the intermediary data structure where lexer stores tokens in the intermediary data structure
before parser starts to access it, and Example 38 is a model before parser starts to access it, and Example 37 is a model
where parser works with the lexer interactively. The Lexer where parser works with the lexer interactively. The Lexer
part models the behavior of a typical Lex machine. The part models the behavior of a typical Lex machine. The
behavior of Stack is integrated into Parser’s behavior. behavior of Stack is integrated into Parser’s behavior.
...@@ -27,7 +27,7 @@ and the rest of the MP model. Interactions in MP ...@@ -27,7 +27,7 @@ and the rest of the MP model. Interactions in MP
descriptions (event grammar rules), and such adjustment descriptions (event grammar rules), and such adjustment
can be done in a declarative fashion by coordinating the can be done in a declarative fashion by coordinating the
reusable MP code and the MP code under development. reusable MP code and the MP code under development.
Examples 37 and 38 show how it can be done using a model Examples 36 and 37 show how it can be done using a model
of a compiler. of a compiler.
References: References:
......
...@@ -8,7 +8,7 @@ of interactions between components. ...@@ -8,7 +8,7 @@ of interactions between components.
Description: Examples 36 and 37 are models of a bottom-up Description: Examples 36 and 37 are models of a bottom-up
parser with lexical analyzer based on regular expression parser with lexical analyzer based on regular expression
matching. It models the behavior of Lex/Yacc generated matching. It models the behavior of Lex/Yacc generated
compiler’s front end. Example 37 represents an compiler’s front end. Example 36 represents an
architecture where lexer stores tokens in the intermediary architecture where lexer stores tokens in the intermediary
data structure before parser starts to access it, and this data structure before parser starts to access it, and this
is a model where parser works with the lexer interactively. is a model where parser works with the lexer interactively.
...@@ -26,7 +26,7 @@ and the rest of MP model. Interactions in MP (coordination ...@@ -26,7 +26,7 @@ and the rest of MP model. Interactions in MP (coordination
operations) are separated from the behavior descriptions operations) are separated from the behavior descriptions
(event grammar rules), and such adjustment can be done in (event grammar rules), and such adjustment can be done in
a declarative fashion by coordinating the reusable MP code a declarative fashion by coordinating the reusable MP code
and the MP code under development. Examples 37 and 38 show and the MP code under development. Examples 36 and 37 show
how it can be done using a model of a compiler. how it can be done using a model of a compiler.
References: References:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment