Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pascal-compiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lior Spach
pascal-compiler
Commits
20e39468
Commit
20e39468
authored
10 years ago
by
Lior Spach
Browse files
Options
Downloads
Patches
Plain Diff
Update Expr.scala
parent
c77ca8a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/sintatico/Expr.scala
+24
-0
24 additions, 0 deletions
src/main/scala/sintatico/Expr.scala
with
24 additions
and
0 deletions
src/main/scala/sintatico/Expr.scala
+
24
−
0
View file @
20e39468
package
sintatico
package
sintatico
abstract
trait
Molecula
case
class
Program
(
name
:
String
,
inOut
:
String*
)
extends
Molecula
case
class
Variavel
(
id
:
String
,
tipo
:
String
)
extends
Molecula
case
class
DecVariaveis
(
vars
:
Variavel*
)
extends
Molecula
abstract
class
DecFunPro
extends
Molecula
case
class
DecProcedimento
(
id
:
String
,
params
:
Parametros*
)
extends
DecFunPro
case
class
DecFuncao
(
id
:
String
,
tipoRet
:
String
,
params
:
Parametros*
)
extends
DecFunPro
case
class
Parametros
(
id
:
String
,
modo
:
String
,
tipo
:
String
)
extends
Molecula
abstract
trait
Comando
extends
Molecula
case
class
Bloco
(
comandos
:
Comando*
)
extends
Comando
case
class
Atribuicao
(
id
:
String
,
op
:
String
,
expr
:
ExprInt
)
extends
Comando
abstract
trait
Chamada
extends
Comando
case
class
ChamadaFuncao
(
id
:
String
,
Args
:
Argumento*
)
extends
Chamada
case
class
ChamadaProcedimento
(
id
:
String
,
Args
:
Argumento*
)
extends
Chamada
class
Argumento
()
class
Expr
extends
Comando
class
ExprInt
extends
Expr
class
ExprBool
extends
Expr
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment