tasks a-s

This commit is contained in:
Ingy döt Net 2013-04-10 23:57:08 -07:00
parent 47bf37c096
commit b83f433714
12433 changed files with 156208 additions and 123 deletions

View 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.

View file

@ -0,0 +1,3 @@
---
category:
- Pragmatic directives

View 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

View file

@ -0,0 +1,2 @@
10 TRON: REM activate system trace pragma
20 TROFF: REM deactivate system trace pragma

View file

@ -0,0 +1 @@
// +build <expression>

View file

@ -0,0 +1 @@
// +build linux

View file

@ -0,0 +1 @@
// +build Tuesday

View file

@ -0,0 +1 @@
go install -tags `date +%A`

View file

@ -0,0 +1,2 @@
&trace # controls execution tracing
&error # controls error handling

View file

@ -0,0 +1 @@
9!:25]1

View file

@ -0,0 +1,2 @@
3 :'y' 8
8

View file

@ -0,0 +1,2 @@
3 :'y.' 8
|spelling error

View file

@ -0,0 +1,7 @@
9!:49]1
3 :'y.' 8
8
3 :'y.[y=.7' 8
8
3 :'y.]y=.7' 8
7

View file

@ -0,0 +1 @@
options wordlist;

View file

@ -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

View file

@ -0,0 +1,2 @@
numeric digits [exprd];
numeric form [scientific | engineering];

View file

@ -0,0 +1,2 @@
trace tracesetting
trace var [varlist]

View file

@ -0,0 +1,4 @@
use MONKEY_TYPING;
augment class Int {
method times (&what) { what() xx self } # pretend like we're Ruby
}

View file

@ -0,0 +1,2 @@
use warnings; # use warnings pragma module
use strict; # use strict pragma module

View file

@ -0,0 +1,2 @@
no warnings; # disable warnings pragma module
no strict; # disable strict pragma module

View file

@ -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']
>>>

View file

@ -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']
>>>

View file

@ -0,0 +1,2 @@
set -vx # Activate both script line output and command line arguments pragma
set +vx # Deactivate both pragmatic directives