Skip to content

Commit 04d4233

Browse files
authored
Update FilesFormat.md
1 parent c2304f1 commit 04d4233

File tree

1 file changed

+102
-10
lines changed

1 file changed

+102
-10
lines changed

FilesFormat.md

+102-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
layout: default
3-
title: Format
3+
title: PFCF Language
44
nav_order: 2
55
description: ""
6-
permalink: /format
6+
permalink: /pfcf
77
---
88

9-
# FilesFormat
9+
# PFCF Language
1010

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
1212
1313

1414
### Sofware (for developers)
1515

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)
1717

1818

1919
### Installation (last stable version)
@@ -27,7 +27,99 @@ import pyforchange.pfcf
2727
```
2828
3. Enjoy!
2929

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
31123

32124
#### Example 1
33125
Import pfcf and give the instructions.
@@ -47,7 +139,7 @@ l.read()
47139
First, log1_0.pfcf file is made.
48140

49141
v2.0.2 or upper:
50-
```pfcf
142+
```PFCF
51143
hello[,world",|hello\[,world\",|by Eanorambuena~this text can not be printed~,
52144
```
53145

@@ -65,7 +157,7 @@ by Eanorambuena
65157

66158

67159
Finally, `0` is append to log1_hist.pfcf file.
68-
```pfcf
160+
```PFCF
69161
0
70162
```
71163

@@ -80,7 +172,7 @@ l.read()
80172
First, log1_1.pfcf file is made.
81173

82174
v2.0.2 or upper:
83-
```pfcf
175+
```PFCF
84176
:this text can not be printed:,
85177
```
86178

@@ -91,7 +183,7 @@ Then, log1_1.pfcf is read and printed.
91183

92184

93185
Finally, `1` is append to log1_hist.pfcf file.
94-
```pfcf
186+
```PFCF
95187
0
96188
1
97189
```

0 commit comments

Comments
 (0)