1
1
---
2
2
layout : default
3
- title : Format
3
+ title : PFCF Language
4
4
nav_order : 2
5
5
description : " "
6
- permalink : /format
6
+ permalink : /pfcf
7
7
---
8
8
9
- # FilesFormat
9
+ # PFCF Language
10
10
11
- > Python For Change Format .pfcf allows me to easily integrate different Python For Change Ecosystem functionalities
11
+ > Python For Change Format Language allows me to easily integrate different Python For Change Ecosystem functionalities
12
12
13
13
14
14
### Sofware (for developers)
15
15
16
- [ Get the last version of this software here] (https://github.com/PythonForChange/FilesFormat .
16
+ [ Get the last version of this software here] ( https://github.com/PythonForChange/FilesFormat )
17
17
18
18
19
19
### Installation (last stable version)
@@ -27,7 +27,99 @@ import pyforchange.pfcf
27
27
```
28
28
3 . Enjoy!
29
29
30
- ### Usage
30
+ ### Writting PFCF code with [ Pyfoch editor] ( https://pythonforchange.github.io/pyfoch )
31
+
32
+ #### Example
33
+ 1 . Open [ Pyfoch] ( https://pythonforchange.github.io/pyfoch ) .
34
+ 2 . Write the following lines:
35
+ ``` PFCF
36
+ hello,world",|
37
+
38
+ ~this text can not be printed~
39
+ Hi!,
40
+
41
+ 1. Run main.py,
42
+ 2. Edit this file (example.pfcf) and see the magic,
43
+ 3. This is the first real-time editor of .pfcf files,|
44
+
45
+ Welcome to pfcf,
46
+ ~
47
+ multiline
48
+ commentary
49
+ ~
50
+ a new lang...,
51
+ a new experience...,
52
+ Welcome to the future,:),|
53
+
54
+ May 10 2021\, 13:45,
55
+ by Eanorambuena,|
56
+
57
+ Add code like this:,|
58
+ \<qiskit\>,
59
+ q0 q1,
60
+ X,
61
+ H,
62
+ .---X,
63
+ c1,
64
+ $host qasm_simulator,
65
+ $hist true,
66
+ $draw true,
67
+ \</qiskit\>\,,
68
+ |
69
+ \<python\>,
70
+ print(\"hello world\"),
71
+ \</python\>\,,
72
+ |
73
+ \<wolfram\>,
74
+ Range[5],
75
+ \</wolfram\>\,,
76
+ ```
77
+ 3 . In "File" menu, click on "Export".
78
+ 4 . Give a name to your exported file and save.
79
+ 5 . Open the exported file.
80
+ 6 . The exported file will have the following text:
81
+ ```
82
+ hello
83
+ world
84
+
85
+ Hi!
86
+ 1. Run main.py
87
+ 2. Edit this file (example.pfcf) and see the magic
88
+ 3. This is the first real-time editor of .pfcf files
89
+
90
+ Welcome to pfcf
91
+ a new lang...
92
+ a new experience...
93
+ Welcome to the future
94
+ :)
95
+
96
+ May 10 2021, 13:45
97
+ by Eanorambuena
98
+
99
+ Add code like this:
100
+
101
+ <qiskit>
102
+ q0 q1
103
+ X
104
+ H
105
+ .---X
106
+ c1
107
+ $host qasm_simulator
108
+ $hist true
109
+ $draw true
110
+ </qiskit>,
111
+
112
+ <python>
113
+ print("hello world")
114
+ </python>,
115
+
116
+ <wolfram>
117
+ Range[5]
118
+ </wolfram>,
119
+ ```
120
+ 7 . Enjoy!
121
+
122
+ ### Using pyforchange.pfcf package
31
123
32
124
#### Example 1
33
125
Import pfcf and give the instructions.
@@ -47,7 +139,7 @@ l.read()
47
139
First, log1_0.pfcf file is made.
48
140
49
141
v2.0.2 or upper:
50
- ``` pfcf
142
+ ``` PFCF
51
143
hello[,world",|hello\[,world\",|by Eanorambuena~this text can not be printed~,
52
144
```
53
145
@@ -65,7 +157,7 @@ by Eanorambuena
65
157
66
158
67
159
Finally, ` 0 ` is append to log1_hist.pfcf file.
68
- ``` pfcf
160
+ ``` PFCF
69
161
0
70
162
```
71
163
@@ -80,7 +172,7 @@ l.read()
80
172
First, log1_1.pfcf file is made.
81
173
82
174
v2.0.2 or upper:
83
- ``` pfcf
175
+ ``` PFCF
84
176
:this text can not be printed:,
85
177
```
86
178
@@ -91,7 +183,7 @@ Then, log1_1.pfcf is read and printed.
91
183
92
184
93
185
Finally, ` 1 ` is append to log1_hist.pfcf file.
94
- ``` pfcf
186
+ ``` PFCF
95
187
0
96
188
1
97
189
```
0 commit comments