tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
3
Task/Pragmatic-directives/0DESCRIPTION
Normal file
3
Task/Pragmatic-directives/0DESCRIPTION
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Pragmatic directives cause the language to operate in a specific manner, allowing support for operational variances within the program code (possibly by the loading of specific or alternative modules).
|
||||
|
||||
The task is to list any pragmatic directives supported by the language, demonstrate how to activate and deactivate the pragmatic directives and to describe or demonstate the scope of effect that the pragmatic directives have within a program.
|
||||
3
Task/Pragmatic-directives/1META.yaml
Normal file
3
Task/Pragmatic-directives/1META.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
category:
|
||||
- Pragmatic directives
|
||||
12
Task/Pragmatic-directives/ALGOL-68/pragmatic-directives.alg
Normal file
12
Task/Pragmatic-directives/ALGOL-68/pragmatic-directives.alg
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/local/bin/a68g --script #
|
||||
|
||||
PRAGMAT portcheck PRAGMAT
|
||||
PR portcheck PR
|
||||
|
||||
BEGIN PR heap=256M PR # algol68g pragma #
|
||||
~
|
||||
END;
|
||||
|
||||
PROC (REAL)REAL s = sin();
|
||||
|
||||
SKIP
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
10 TRON: REM activate system trace pragma
|
||||
20 TROFF: REM deactivate system trace pragma
|
||||
1
Task/Pragmatic-directives/Go/pragmatic-directives-1.go
Normal file
1
Task/Pragmatic-directives/Go/pragmatic-directives-1.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
// +build <expression>
|
||||
1
Task/Pragmatic-directives/Go/pragmatic-directives-2.go
Normal file
1
Task/Pragmatic-directives/Go/pragmatic-directives-2.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
// +build linux
|
||||
1
Task/Pragmatic-directives/Go/pragmatic-directives-3.go
Normal file
1
Task/Pragmatic-directives/Go/pragmatic-directives-3.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
// +build Tuesday
|
||||
1
Task/Pragmatic-directives/Go/pragmatic-directives-4.go
Normal file
1
Task/Pragmatic-directives/Go/pragmatic-directives-4.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
go install -tags `date +%A`
|
||||
2
Task/Pragmatic-directives/Icon/pragmatic-directives.icon
Normal file
2
Task/Pragmatic-directives/Icon/pragmatic-directives.icon
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
&trace # controls execution tracing
|
||||
&error # controls error handling
|
||||
1
Task/Pragmatic-directives/J/pragmatic-directives-1.j
Normal file
1
Task/Pragmatic-directives/J/pragmatic-directives-1.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
9!:25]1
|
||||
2
Task/Pragmatic-directives/J/pragmatic-directives-2.j
Normal file
2
Task/Pragmatic-directives/J/pragmatic-directives-2.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
3 :'y' 8
|
||||
8
|
||||
2
Task/Pragmatic-directives/J/pragmatic-directives-3.j
Normal file
2
Task/Pragmatic-directives/J/pragmatic-directives-3.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
3 :'y.' 8
|
||||
|spelling error
|
||||
7
Task/Pragmatic-directives/J/pragmatic-directives-4.j
Normal file
7
Task/Pragmatic-directives/J/pragmatic-directives-4.j
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
9!:49]1
|
||||
3 :'y.' 8
|
||||
8
|
||||
3 :'y.[y=.7' 8
|
||||
8
|
||||
3 :'y.]y=.7' 8
|
||||
7
|
||||
|
|
@ -0,0 +1 @@
|
|||
options wordlist;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
options -
|
||||
nobinary nocomments nocompact console crossref decimal nodiag noexplicit noformat java logo noreplace nosavelog nosourcedir -
|
||||
nostrictargs nostrictassign nostrictcase nostrictimport nostrictprops nostrictsignal nosymbols trace2 noutf8 verbose3
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
numeric digits [exprd];
|
||||
numeric form [scientific | engineering];
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
trace tracesetting
|
||||
trace var [varlist]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
use MONKEY_TYPING;
|
||||
augment class Int {
|
||||
method times (&what) { what() xx self } # pretend like we're Ruby
|
||||
}
|
||||
2
Task/Pragmatic-directives/Perl/pragmatic-directives-1.pl
Normal file
2
Task/Pragmatic-directives/Perl/pragmatic-directives-1.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
use warnings; # use warnings pragma module
|
||||
use strict; # use strict pragma module
|
||||
2
Task/Pragmatic-directives/Perl/pragmatic-directives-2.pl
Normal file
2
Task/Pragmatic-directives/Perl/pragmatic-directives-2.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
no warnings; # disable warnings pragma module
|
||||
no strict; # disable strict pragma module
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32
|
||||
Type "copyright", "credits" or "license()" for more information.
|
||||
>>> import __future__
|
||||
>>> __future__.all_feature_names
|
||||
['nested_scopes', 'generators', 'division', 'absolute_import', 'with_statement', 'print_function', 'unicode_literals', 'barry_as_FLUFL']
|
||||
>>>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
|
||||
Type "copyright", "credits" or "license()" for more information.
|
||||
>>> import __future__
|
||||
>>> __future__.all_feature_names
|
||||
['nested_scopes', 'generators', 'division', 'absolute_import', 'with_statement', 'print_function', 'unicode_literals']
|
||||
>>>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
set -vx # Activate both script line output and command line arguments pragma
|
||||
set +vx # Deactivate both pragmatic directives
|
||||
Loading…
Add table
Add a link
Reference in a new issue