function problem1(a, b, c) {
arguments[0] = 100;
return [a, b, c];
}
problem1(1, 2, 3) // 반환값을 맞추어 보세요!
정답: [100, 2, 3]
function problem1(a, b, c) {
arguments[0] = 100;
return [a, b, c];
}
problem1(1, 2, 3) // 반환값을 맞추어 보세요!
정답: [100, 2, 3]
가벼운 Observable 과 Iterable을 구현할 수 있게 하는 자바스크립트의 콜백을 위한 표준
기본적인 callbag 팩토리와 오퍼레이터들을 제공하는 라이브러리입니다.
callbag-basics 은 callbag 이라는 명세를 따르는 함수들을 구현한 라이브러리에요.
Callbag 은 말이죠..:
numPrefix ::= 0x | 0b | 0o | nothing
floatNumber ::= numbers . numbers
fullNumber ::= numPrefix numbers | floatNumber
char ::= utf 8 char
chars ::= char chars | nothing
fullString ::= " chars "
alphabet ::= A-z
alphabets ::= alphabet alphabets | nothing
number ::= 0-9
numbers ::= number numbers | nothing
specialChar ::= _ | ?
specialChars ::= specialChar specialChars | nothing
identifierHead ::= specialChar | alphabet
identifierBody ::= alphabets | numbers | specialChars
identifierBodys ::= identifierBody identifierBodys | nothing
package main | |
import "fmt" | |
type any interface {} | |
type Stack []any | |
func (stack *Stack) Push(elements ...any) Stack { | |
for _, element:= range elements { |
EBNF of identifier
EBNF of literal
연속된 2개 이상의 space는 한개의 space로 치환됩니다.
모든 줄은 trim 됩니다.(줄의 첫 번째 문자가 space가 아니고, 가장 마지막 문자가 space가 아닐 때 까지 모든 space를 제거함을 의미.)
space ::= 'utf8 space character'
spaces ::= space spaces
expressions ::= expression spaces expressions
expression ::= container | literal | nothing