GiulioM Posted September 23, 2012 Posted September 23, 2012 (edited) Right now, this is only a concept, to see if it's worth doing it. The idea is: build a script to build a programming language, with a predefined syntax, but with a configurable list of commands. Please tell if you'd like/want/don't want it. EDIT: I posted it here because, if it's worth making it, I will post it in this thread. Edited September 23, 2012 by GiulioM
Mat Posted September 23, 2012 Posted September 23, 2012 With a predefined syntax but custom commands sounds like AutoIt with either a preprocessor or just #includes. Far more interesting with customizable syntax: There are quite a lot of tools already like this. Do a bit of reading on BNF as that is the most common syntax. Tools like Yacc and Lex (and their variants) are the most used tools. One of my favourites is a lexer generator called Ragel, I've used it quite a lot in the passed. In any case the best advice is to do some reading on the theory. I got the dragon book (Compilers: Principles, Techniques and Tools) which is a very definitive reference, that also covers the tools listed above in addition to most of the common algorithms. After that do some more research, as compiler construction (and so compiler compiler construction) is a huge topic. There are lots of really clever variations on the common algorithms like Top Down Operator Precedence Parsers. AutoIt Project Listing
Moderators Melba23 Posted September 23, 2012 Moderators Posted September 23, 2012 GiulioM, I am moving this to "Developer Chat" as there is no AutoIt example code as yet. Good luck! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
jvanegmond Posted September 23, 2012 Posted September 23, 2012 Configurable list of commands... You mean functions? github.com/jvanegmond
JohnOne Posted September 23, 2012 Posted September 23, 2012 About a month ago you were asking how you get a list of files in a folder, and now you're talking about making your own language. getting a bit ahead of yourself don't you think. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Xandy Posted September 23, 2012 Posted September 23, 2012 (edited) I wrote Runner. It's a hotkey macro program. Build your own macro with thousands of commands using close to 50 macro command types. Use constant or variable data, read and write to file. React to picture or mathematical comparison, programs running, move mouse, send keys, play file, talk. It's a scripting language written with a scripting language or it's a can of whoop ass with a can of whoop ass inside. I didn't know how to do it until I found AutoIt a few years back.So my macro is a programming language, no I'm serious it's pretty nice.I could make a macro that makes a notepad window, send a line of Cake Sheep goto Heaven lyrics file, then narrate the line with Microsoft Sam. Increment the variable line of file to read. Repeat from send line until end of lyric file. I could do it in less then 20 macro commands without calling other macros as functions. Maybe switch narrators every line or two. Not going to clutter this post with a video, plus I never finished the macro. Developers know there isn't enough time.I forgot Runner is free to forum members joining before 2012. An interested person runs the software and tells me the user_id returned by songersoft. I can then return a key that only runs on your system. Runner is also inexpensive at $9.99+0.7 sales tax ($10.70 or something), Paypal IPN handles that key generation same thing but scripted. Edited September 24, 2012 by Xandy czardas 1 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
czardas Posted September 24, 2012 Posted September 24, 2012 I must say that looks very impressive Xandy. Although I need to absorb it a little. The website also looks good. You've obviously put a lot of work into this. Thanks for sharing it. operator64 ArrayWorkshop
Xandy Posted September 24, 2012 Posted September 24, 2012 I couldn't have done it without AutoIt, spaghetti, or the sun. Thank you for developing AutoIt. czardas 1 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now