In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language.
2
votes
2answers
31 views
What do you think about this custom syntax? [closed]
I'm making a programming language and I've got the basis of a virtual machine working. The next step to is design the actual syntax for the language. I'd just like to know if whether the example ...
7
votes
1answer
134 views
interactive slider
Task:
Create an interactive slider that allows the user to view a given image gallery.
Slider controls:
See previous slide
See next slide
Quick navigation through the images / Paging - ...
9
votes
3answers
188 views
Updating Grid on Webpage (new version)
Task:
Draw a grid with a given number of rows and columns. Each cell can be
any color. The same grid should also be updated at a predetermined
time interval. The grid should cover the entire ...
5
votes
2answers
116 views
Updating Grid on Webpage
Task:
Draw a grid with a given number of rows and columns. Each cell can be
any color. The same grid should also be updated at a predetermined
time interval. The grid should cover the ...
0
votes
1answer
63 views
What are the drawbacks of DRY input validation configuration?
I have designed the following input validation implementation with one goal: DRY. I'd like to know whether it is intuitive and what are the possible shortcomings.
...
9
votes
2answers
406 views
C-style language lexer for a syntax highlighter
I'm working on implementing a syntax highlighter for a simple text editor I've been working on. To do this, I need a simple lexer for various languages (I don't need a full one - I'm only interested ...
1
vote
2answers
90 views
python array literal syntax sugar similar to perl and ruby
Background
Python (version 2.7.2)
Problem
You want to specify an array in your code.
You want to use the 'syntax sugar' available in Ruby and Perl.
You are a fanatic about readable code but also ...
0
votes
1answer
45 views
Cleaner RegEx Syntax
I've got information that is imported from a CSV file that my site grabs every day with PHP. I'm just learning RegEx so I'm able to do what I need to do but am looking to get more efficient with my ...
1
vote
1answer
68 views
Manage Case Statement with (Int, long, short, double…)
I have the following case statements that has to be modified to fit these cases:
Dec, Double, ...
1
vote
1answer
104 views
Color fading function
I found this old color fading function in my snippets folder and would like to implement it to one of my projects. It can be used to fade one color to another. It's a very long one-liner:
...
7
votes
1answer
507 views
A C++ PEG parser generator
I wrote a C++ PEG packrat parser generator and would love to get some feedback on the code and/or syntax. I currently use the << operator for defining grammar ...
-1
votes
1answer
617 views
arduino timer to print array of serial data at specific intervals, syntax problem [closed]
I was wondering if you guys could help me solve an arduino Coding problem. I've simplified the code to highlight the issue that I'm having. I've created a program to read streaming serial data to an ...
6
votes
1answer
186 views
3
votes
1answer
201 views
JavaScript/PHP file uploader
I'm writing a JavaScript/PHP file uploader and I want to start this project off on the right track. I've started with this, a JavaScript Uploader object which will ...
2
votes
2answers
215 views
My language, gecho
I wrote a language in C, dubbed gecho. The code can be found at http://github.com/tekknolagi/gecho/tree/testing
I'm writing this for a purely educational reason ...
6
votes
6answers
314 views
Explicit Function Notation in Perl
I've gone back and forth a few times recently on my Perl coding style when it comes to module subroutines. If you have an object and you want to call the method bar ...