Compare commits
4 Commits
40c60f36ab
...
master
Author | SHA1 | Date | |
---|---|---|---|
2022270fad | |||
1d9dee3d68 | |||
1243ed9c06 | |||
dd28135d14 |
1
Pond.package/CarpEditor.class/README.md
Normal file
1
Pond.package/CarpEditor.class/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
I’m a simple editor with Carp code in it.
|
8
Pond.package/CarpEditor.class/instance/gtCheck.st
Normal file
8
Pond.package/CarpEditor.class/instance/gtCheck.st
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
initialization
|
||||||
|
gtCheck
|
||||||
|
<gtInspectorAction>
|
||||||
|
"TODO: make carp checker configurable"
|
||||||
|
^ GLMGenericAction new
|
||||||
|
action: [ GTInspector openOn: (CarpCheckExample new succeedingCarpChecker file: editor text asString; check) ];
|
||||||
|
icon: GLMUIThemeExtraIcons glamorousRefresh;
|
||||||
|
title: 'Check'
|
6
Pond.package/CarpEditor.class/instance/gtContent..st
Normal file
6
Pond.package/CarpEditor.class/instance/gtContent..st
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
initialization
|
||||||
|
gtContent: aView
|
||||||
|
<gtInspectorPresentationOrder: 0>
|
||||||
|
(aView custom: editor)
|
||||||
|
title: 'Editor';
|
||||||
|
display: text
|
5
Pond.package/CarpEditor.class/instance/initialize.st
Normal file
5
Pond.package/CarpEditor.class/instance/initialize.st
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
initialization
|
||||||
|
initialize
|
||||||
|
text := ''.
|
||||||
|
"TODO: find out how to override the mode properly"
|
||||||
|
editor := GLMRubricHighlightedTextPresentation new withLineNumbers: true; editingMode: RubPlainTextMode new
|
3
Pond.package/CarpEditor.class/instance/text.st
Normal file
3
Pond.package/CarpEditor.class/instance/text.st
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
initialization
|
||||||
|
text
|
||||||
|
^ text
|
14
Pond.package/CarpEditor.class/properties.json
Normal file
14
Pond.package/CarpEditor.class/properties.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"commentStamp" : "VeitHeller 12/18/2019 21:39",
|
||||||
|
"super" : "Object",
|
||||||
|
"category" : "Pond",
|
||||||
|
"classinstvars" : [ ],
|
||||||
|
"pools" : [ ],
|
||||||
|
"classvars" : [ ],
|
||||||
|
"instvars" : [
|
||||||
|
"text",
|
||||||
|
"editor"
|
||||||
|
],
|
||||||
|
"name" : "CarpEditor",
|
||||||
|
"type" : "normal"
|
||||||
|
}
|
@@ -25,7 +25,10 @@ in a playground.
|
|||||||
|
|
||||||
## More info
|
## More info
|
||||||
|
|
||||||
You can read the [devlog](/devlog) where I document my progress daily.
|
You can read the [devlog](/devlog) where I document my progress. Mostly you can
|
||||||
|
see me fail, which is quite fun. The log as of now is a story of me trying to
|
||||||
|
get started in one of the last weeks of 2019, getting sick, and not getting very
|
||||||
|
far at all. I intend to carve out some more time soon.
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
@@ -15,4 +15,10 @@ at all, but I really want to.
|
|||||||
|
|
||||||
## Review
|
## Review
|
||||||
|
|
||||||
Time worked:
|
Time worked: 1:00
|
||||||
|
|
||||||
|
I was able to make it kinda sorta work. I can open an unhighlighted Carp
|
||||||
|
editor, play around in it, and try to check the results using a button that
|
||||||
|
spits out the error in a new inspector for me. This isn’t quite what I
|
||||||
|
envisioned, but all the pieces are there. I just need to connect the dots
|
||||||
|
somehow now.
|
||||||
|
18
devlog/postmortem_01.md
Normal file
18
devlog/postmortem_01.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Postmortem: Building an IDE for Carp in Pharo in December 2019
|
||||||
|
|
||||||
|
In the last week of 2019, I wanted to start building an IDE for Carp in Pharo
|
||||||
|
Smalltalk. I was unable to make much headway during that time, and I was able
|
||||||
|
to identify two factors that held me back:
|
||||||
|
|
||||||
|
- Firstly, I was fairly inexperienced with the tools Pharo provides for working
|
||||||
|
with programming languages. While I am somewhat aware of SmaCC, FAMIX, and
|
||||||
|
Moose, I was not sure how they fit together, and I decided to focus on
|
||||||
|
creating a connection to the compiler and parsing it’s results myself first.
|
||||||
|
This proved to be annoyingly hard to do, which demotivated me.
|
||||||
|
- I got sick. I was unable to work more than one or two hours a day due to a
|
||||||
|
cold, which of course slowed me down tremendously also, and obliterated
|
||||||
|
basically all of the motivation I still had left.
|
||||||
|
|
||||||
|
In the end, I didn‘t get very far, but that‘s okay. I‘m not in a rush to get my
|
||||||
|
ideas out and mostly investigate to satisfy my own self intellectual curiosity,
|
||||||
|
misguided as it might or might not be.
|
Reference in New Issue
Block a user