Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
FortyMcFortface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Johannes Mey
FortyMcFortface
Commits
f77a2042
Commit
f77a2042
authored
8 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
improve parsing of ObjectName
parent
a145d33b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Parser/spec/Fortran2008.rats
+6
-1
6 additions, 1 deletion
Parser/spec/Fortran2008.rats
with
6 additions
and
1 deletion
Parser/spec/Fortran2008.rats
+
6
−
1
View file @
f77a2042
...
...
@@ -2699,6 +2699,7 @@ CommonBlockObject common_block_object =
//// ArrayElement_Designator:Designator ::= ArrayElement ;
//// ArraySection_Designator:Designator ::= ArraySection ;
Designator designator =
<BEGINNING>
a:array_section
{
yyValue = new ArraySection_Designator(a);
...
...
@@ -4183,7 +4184,11 @@ DefinedBinaryOp defined_binary_op =
//// // R732
//// AssignmentStmt:ActionStmt ::= Variable Expr;
AssignmentStmt assignment_stmt =
v:variable EQUALS e:expr lnc:comment
o:object_name EQUALS e:expr lnc:comment
{
yyValue = new AssignmentStmt(new Opt<Label>(), lnc, new Designator_Variable(new ObjectName_Designator(o)),e);
}
/ v:variable EQUALS e:expr lnc:comment
{
yyValue = new AssignmentStmt(new Opt<Label>(), lnc, v,e);
}
...
...
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