Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create trait FASTTVariableDeclarator (and FASTTWithVariableDeclarators ?) #35

Open
NicolasAnquetil opened this issue Nov 23, 2023 · 1 comment

Comments

@NicolasAnquetil
Copy link
Contributor

NicolasAnquetil commented Nov 23, 2023

FASTTVariableDeclarator would have relation to:

  • variable declared
  • optional initial value (an expression)

mainly used in VariableDeclarations

@NicolasAnquetil NicolasAnquetil changed the title Create trait FASTTDeclarator (and FASTTWithDeclarators ?) Create trait FASTTVariableDeclarator (and FASTTWithVariableDeclarators ?) Nov 23, 2023
@NicolasAnquetil
Copy link
Contributor Author

NicolasAnquetil commented Nov 23, 2023

example copied from FASTFortran (itself copied from FASTJava):

	((tWithDeclarators property: #declarators) comment: 'variables declared')
	<>-* (tVariableDeclarator property: #parentDeclaration).

	((tVariableDeclarator property: #expression) comment:
		 'Expression assigned to the variable declared')
	<>- (tExpression property: #variableDeclaratorOwner) .

	((tVariableDeclarator property: #variable) comment:
		 'The variable that is being declared')
	<>- ((variable property: #parentDeclarator) 
			comment: 'The declaration of this variable').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant